How necessary is it to have the writeToNBT and readFromNBT in an interfaceable Tile Entity? I've been looking at the code for TileEntityFurnace and noticed that it has those functions. It looks like it's using them to store the information when the game is closed, is this true?
I'm trying to create a new block that has an interface when rightclicked, and this will bring up a GUI similar to the Furnace (allowing you to place things inside). I haven't found any tutorial that explains what to do.
My current thoughts: It would somehow extend the GuiContaner class, but other than that I cannot make heads or tails of the code inside of it. Any help with that would be greatly appreciated.
1 reply
Important Information
By using this site, you agree to our Terms of Use.