-
[1.10.2] Saving Energy in a tile entity
Hmm I'll try that, the writeNBT takes a side as a parameter, can I supply null? *Edit* It appears null should be fine
-
[1.10.2] Saving Energy in a tile entity
Thank you, but I'm unsure how I would use this in code? I've tried adding Capability.IStorage<EnergyStorage>, but that doesn't provide nbt saving, maybe I mis-understood.
-
[1.10.2] Saving Energy in a tile entity
EnergyStorage and IEnergyStorage don't implement IStorage
-
[1.10.2] Saving Energy in a tile entity
Hey, so I've created a new tile entity with the `EnergyStorage` capability, however the capability does not provide a serializeNBT() or .deserializeNBT() method, so I'm unsure how I would save the stored energy? Do I need to subclass EnergyStorage? Also now with the ItemStackHandler capability for inventorys, how do I synchronise a progress bar of the stored energy and the progress of my tile entity?
- Item with IItemHandler capability
- Item with IItemHandler capability
- Item with IItemHandler capability
- Item with IItemHandler capability
- Item with IItemHandler capability
-
Item with IItemHandler capability
Hello, I'm having a lot of trouble finding information on adding and IItemHandler capability to an Item, for an TileEntity it has methods like hasCapability however I can't find a method like that in an Item, all items have is "initCapabilities", and I have honestly no clue what to return or do to add an inventory to an item. So if anyone could please point me to any information that could tell me how capabilities work on items and how to implement an inventory. Thank you.
- The New Forums
-
[Cauldron][1.6.4] Material ids from mod block?
Im trying to make a plugin for a Cauldron (MCPC+) server and i need to stop the placement of the Mekanism Digital Miner but how do i do it? The (apparently) id of the digital miner is X3009 but because its not 1 block the digital miner the center block has the id X3003?
IPS spam blocked by CleanTalk.