Interface INBTInventory

All Superinterfaces:
net.minecraft.world.Clearable, net.minecraft.world.Container, INBTSerializable
All Known Implementing Classes:
IndexedInventory, LargeInventory, NBTSimpleInventoryItemHeld, NBTSimpleInventoryItemStack, SimpleInventory

public interface INBTInventory extends net.minecraft.world.Container, INBTSerializable
An Container that support NBT persistence.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.cyclops.cyclopscore.persist.nbt.INBTSerializable

    INBTSerializable.SelfNBTClassType
  • Field Summary

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
    read(net.minecraft.nbt.CompoundTag data)
    Read inventory data from the given NBT.
    void
    write(net.minecraft.nbt.CompoundTag data)
    Write inventory data to the given NBT.

    Methods inherited from interface net.minecraft.world.Clearable

    clearContent

    Methods inherited from interface net.minecraft.world.Container

    canPlaceItem, canTakeItem, countItem, getContainerSize, getItem, getMaxStackSize, hasAnyMatching, hasAnyOf, removeItem, removeItemNoUpdate, setChanged, setItem, startOpen, stillValid, stopOpen

    Methods inherited from interface org.cyclops.cyclopscore.persist.nbt.INBTSerializable

    fromNBT, toNBT
  • Method Details

    • read

      void read(net.minecraft.nbt.CompoundTag data)
      Read inventory data from the given NBT.
      Parameters:
      data - The NBT data containing inventory data.
    • write

      void write(net.minecraft.nbt.CompoundTag data)
      Write inventory data to the given NBT.
      Parameters:
      data - The NBT tag that will receive inventory data.
    • isEmpty

      boolean isEmpty()
      Specified by:
      isEmpty in interface net.minecraft.world.Container
      Returns:
      If all slots are empty.