The initial commit of the re-write of "PeriodicCraft", now called "KemiCraft".
Initial commit.
Just cleaned up temporarily and made minor changes.
Added the Substance class and the registry for adding new substances. The plan is to have a unique id for each substance.
Added a new method for getting a substance by symbol.
I added a class for adding compounds and a way of adding them to the SubstanceRegistry.
Added the SubstanceStack class and a way of linking substances to different blocks/items.
This is all using Block.getUnlocalizedName() and Item.getUnlocalizedName().
A compound is now also using SubstanceStacks instead of Substances for storing elements.
SubstanceStacks let you add an amount of atoms.
Small changes to how an element changes state/phase.
Added a new parameter (temperature) to SubstanceStack so that you can set the temperature of the stack.
Added a field for setting which object that is associated with this compound (instead of the linking system).
This means that it can be the unlocalized name of a Block, ItemStack and Item. All of them work. As long as the name is unique for the object.
Added a Position class for simplified neighbor handling.
I also added a few utilities within the class for convenience.
Just adding some new stuff, fixing out some errors
Time to Commit!
Added some more stuffs
Added the ResearchRegistry and added classes that will be extended by all the items provided by this mod our by the mods using our API.
The ResearchRegistry will allow you register a research for a specific item/block. There's a progress field within a research, which determines whether the research is completed or not.
I'm starting the work of an electricity API now. I have added a PeriodicTile which will be extended by all TileEntities created by our mod. I have also added an ElectricTile which will be extended by all TileEntities that are electrical.
I added all the tabs that will be used by our mod, an ElectricBlock class which will be used by all blocks that are electrical. I also started adding some resources that will be used for creating new blocks in the near future.
Two electrical blocks can now interact with each other (sharing energy).
This has not been tested yet, though.
Minor changes, and added an example for adding an element.
Made a change for conveniently structuring a new instance of a compound.
I don't know why I extended Substance to the SubstanceStack class from the beginning.
It was stupid, and a waste of time and code. This is now all fixed.