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 Type
    Method
    Description
    void
    deserialize(net.minecraft.nbt.CompoundTag nbt)
    Deserializes the information of an object from a CompoundTag.
    net.minecraft.nbt.CompoundTag
    serialize(net.minecraft.nbt.CompoundTag nbt)
    Serializes the information of an object to a CompoundTag.
  • Method Details

    • deserialize

      void deserialize(net.minecraft.nbt.CompoundTag nbt)
      Deserializes the information of an object from a CompoundTag.
      Parameters:
      nbt - The CompoundTag to deserialize from.
    • serialize

      net.minecraft.nbt.CompoundTag serialize(net.minecraft.nbt.CompoundTag nbt)
      Serializes the information of an object to a CompoundTag.
      Parameters:
      nbt - The CompoundTag to serialize to.
      Returns:
      The CompoundTag that was passed in but with the information of the object serialized added to it.