Is there a api documentation?
API Documentation
-
-
The API jar comes with all the source files for it, so there is documentation and general comments there. If there is anything in particular you're unsure about then feel free to ask here too.
-
I'm trying to create a generator but online on I find nothing about it, there is something special that i have to consider?
-
You'll need to implement IEnergySource on your generator tile entity, post an EnergyTileLoadEvent when your tile is loaded and an EnergyTileUnloadEvent when it is unloaded. You can take a look at BasicSource if you'd like something that can handle (nearly) everything for you, or just as an example of what you might need to do.
-
Ok thank you
-
if I wanted to create a block that receives and sends energy, should I always use IEnergySource? and if so what should I do?
-
You'll need to implement IEnergySink if you want it to accept power too, but otherwise yes. If your block is like an MFE in that it stores the power it can accept and send, implementing IEnergyStorage is probably a reasonable idea. If you want a BasicSource equivalent it'd be worth looking at BasicSinkSource.
-
IRecipeInput input = new IRecipeInput(new ItemStack(Items.emerald));
what did I write wrong?
-