Skip to content

Commit

Permalink
Version 0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhaney97 committed Jan 25, 2016
1 parent d60a770 commit 9aa4c23
Show file tree
Hide file tree
Showing 4 changed files with 463 additions and 7 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Oh yeah, when getting ready to deploy your mod, be sure to use gradle build (not

##Downloads

- Version 0.5.2: [forge-clj](http://bit.ly/1PeHOgA "forge-clj Version 0.5.2") [forge-clj devkit](http://bit.ly/1Qn55fh "forge-clj devkit Version 0.5.2")

- Version 0.5.1: [forge-clj](http://bit.ly/1PAHtpQ "forge-clj Version 0.5.1") [forge-clj devkit](http://bit.ly/1OJpv19 "forge-clj devkit Version 0.5.1")

- Version 0.5.0: [forge-clj](http://bit.ly/1GREeYa "forge-clj Version 0.5.0") [forge-clj devkit](http://bit.ly/1GREcQ4 "forge-clj devkit Version 0.5.0")
Expand All @@ -38,6 +40,8 @@ Oh yeah, when getting ready to deploy your mod, be sure to use gradle build (not

##Changelog

- Version 0.5.2: Added the ability to make biomes, and extended upon defobj so that you can now optionally make it generate a class underneath for the purpose of accessing protected fields. Also added some support for custom chunk providers, though unfortunately I was unable to replicate Minecraft's terrain generation function, due to some slowness in the language as well as general complexity issues. If you wish to make a chunk provider for a forge-clj mod, I would recommend just copying the chunk provider from Java, and then reference it via inter-op. My apologies for not being able to figure this out, and even greater apologies for spending a month TRYING to figure it out and failing.

- Version 0.5.1: Added docstrings to the code. Also added 2 new useful macros: defclass and with-prefix. Also rearranged the namespaces a bit. The deftab macro is now in forge-clj.items, and many of the more utility-based functions in the core (gen-classname, get-fullname, etc.) are now in forge-clj.util. I also added a new namespace called forge-clj.registry, that contains all of the register functions and such (except for the network stuff). Also made forge-clj.client.registry, which is the same, but is for the client side.

- Version 0.5.0: Added REPL support. To use it, first add the :repl keyword to the defmod macro, and set it to your port number or set it to true to use the default port of 7888. Then just connect to it with another tool (if using leiningen do "lein repl :connect \<portnumber\>"). Also finished adding support for GUIs (with inventory).
Expand Down
2 changes: 1 addition & 1 deletion src/main/clojure/forge_clj/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
;----------------------------

(gen-class
:name ^{Mod {:name "ForgeClj" :modid "forge-clj" :version "0.5.1"}} forge_clj.core.ForgeClj
:name ^{Mod {:name "ForgeClj" :modid "forge-clj" :version "0.5.2"}} forge_clj.core.ForgeClj
:prefix "forge-clj-"
:methods [[^{Mod$EventHandler []} preInit [cpw.mods.fml.common.event.FMLPreInitializationEvent] void]
[^{Mod$EventHandler []} init [cpw.mods.fml.common.event.FMLInitializationEvent] void]
Expand Down
6 changes: 5 additions & 1 deletion src/main/clojure/forge_clj/ui.clj
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@
hotbar? (:player-hotbar? classdata)
inventory? (:player-inventory? classdata)
slots (:slots classdata)
classdata (assoc classdata :init 'initialize :post-init 'post-initialize :constructors {[IInventory IInventory] []} :state 'data)
classdata (assoc classdata
:init 'initialize
:post-init 'post-initialize
:constructors {[IInventory IInventory] []}
:state 'data)
prefix (str class-name "-")
fullname (get-fullname name-ns class-name)
this-sym (with-meta 'this {:tag fullname})]
Expand Down
Loading

0 comments on commit 9aa4c23

Please sign in to comment.