Class ContainerEntity

java.lang.Object
net.glowstone.block.entity.BlockEntity
net.glowstone.block.entity.ContainerEntity
Direct Known Subclasses:
BrewingStandEntity, ChestEntity, DispenserEntity, FurnaceEntity, HopperEntity

public abstract class ContainerEntity extends BlockEntity
Base class for container block entities (those with inventories).
  • Constructor Details

  • Method Details

    • setContents

      public void setContents(org.bukkit.inventory.ItemStack... contents)
    • loadNbt

      public void loadNbt(CompoundTag tag)
      Description copied from class: BlockEntity
      Read this BlockEntity's data from the saved tag.
      Overrides:
      loadNbt in class BlockEntity
      Parameters:
      tag - The tag to load from.
    • saveNbt

      public void saveNbt(CompoundTag tag)
      Description copied from class: BlockEntity
      Save this BlockEntity's data to NBT.
      Overrides:
      saveNbt in class BlockEntity
      Parameters:
      tag - The tag to save to.
    • getInventory

      public GlowInventory getInventory()