Package earth.terrarium.botarium.util
Interface Serializable
- All Known Subinterfaces:
EnergyContainer,FluidContainer,ItemFluidContainer,SerializableContainer
- All Known Implementing Classes:
ExtractOnlyEnergyContainer,ExtractOnlyFluidContainer,InsertOnlyEnergyContainer,InsertOnlyFluidContainer,PlatformBlockEnergyManager,PlatformBlockFluidHandler,PlatformFluidItemHandler,PlatformItemEnergyManager,SimpleEnergyContainer,SimpleFluidContainer,SimpleItemContainer,UnlimitedEnergyContainer,UnlimitedFluidContainer,WrappedBlockEnergyContainer,WrappedBlockFluidContainer,WrappedItemEnergyContainer,WrappedItemFluidContainer
public interface Serializable
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(net.minecraft.nbt.CompoundTag nbt) Deserializes the information of an object from aCompoundTag.net.minecraft.nbt.CompoundTagserialize(net.minecraft.nbt.CompoundTag nbt) Serializes the information of an object to aCompoundTag.
-
Method Details
-
deserialize
void deserialize(net.minecraft.nbt.CompoundTag nbt) Deserializes the information of an object from aCompoundTag.- Parameters:
nbt- TheCompoundTagto deserialize from.
-
serialize
net.minecraft.nbt.CompoundTag serialize(net.minecraft.nbt.CompoundTag nbt) Serializes the information of an object to aCompoundTag.- Parameters:
nbt- TheCompoundTagto serialize to.- Returns:
- The
CompoundTagthat was passed in but with the information of the object serialized added to it.
-