Package net.glowstone.block.entity
Class ContainerEntity
java.lang.Object
net.glowstone.block.entity.BlockEntity
net.glowstone.block.entity.ContainerEntity
- Direct Known Subclasses:
BrewingStandEntity,ChestEntity,DispenserEntity,FurnaceEntity,HopperEntity
Base class for container block entities (those with inventories).
-
Field Summary
Fields inherited from class net.glowstone.block.entity.BlockEntity
block -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidloadNbt(CompoundTag tag) Read this BlockEntity's data from the saved tag.voidsaveNbt(CompoundTag tag) Save this BlockEntity's data to NBT.voidsetContents(org.bukkit.inventory.ItemStack... contents) Methods inherited from class net.glowstone.block.entity.BlockEntity
destroy, getBlock, getState, pulse, setSaveId, update, updateInRange
-
Constructor Details
-
ContainerEntity
-
-
Method Details
-
setContents
public void setContents(org.bukkit.inventory.ItemStack... contents) -
loadNbt
Description copied from class:BlockEntityRead this BlockEntity's data from the saved tag.- Overrides:
loadNbtin classBlockEntity- Parameters:
tag- The tag to load from.
-
saveNbt
Description copied from class:BlockEntitySave this BlockEntity's data to NBT.- Overrides:
saveNbtin classBlockEntity- Parameters:
tag- The tag to save to.
-
getInventory
-