How do I expose ITEM_HANDLER_CAPABILITY? I tried to expose it as the way in the official forge tutorial, but it doesn't work.
TileEntity:
Block:
Other classes are not changed.
Changing code caused another problem. It does not open GUI.
These are the codes:
Block class:
TileEntity class:
Recipe class:
GUI class:
And container class:
Also, when I shift-rightclick on the blast furnace, it just change its direction and no block is added.
Should I override it like this?
Are you saying to remove BlastFurnace.currentFuel?
What do you mean? Should I remove BlockBase class and add methods in the BlockBase class in each block classes?
I changed TileEntity Like This:
I made constants and removed hard-coding on readFromNBT and writeToNBT.
My custom furnace uses the input in milliseconds but doesn't make output. Also it doesn't drop container item when destroyed. (I watched HarryTalks' tutorial)
The code is here:
Block Class
TileEntity Class
Container class
GUI class
Recipe class
Sorry for my bad english