public abstract class ContainerEntity extends BlockEntity
block| Constructor and Description |
|---|
ContainerEntity(GlowBlock block,
GlowInventory inventory) |
| Modifier and Type | Method and Description |
|---|---|
GlowInventory |
getInventory() |
void |
loadNbt(CompoundTag tag)
Read this BlockEntity's data from the saved tag.
|
void |
saveNbt(CompoundTag tag)
Save this BlockEntity's data to NBT.
|
void |
setContents(org.bukkit.inventory.ItemStack... contents) |
destroy, getBlock, getState, pulse, setSaveId, update, updateInRangepublic ContainerEntity(GlowBlock block, GlowInventory inventory)
public void setContents(org.bukkit.inventory.ItemStack... contents)
public void loadNbt(CompoundTag tag)
BlockEntityloadNbt in class BlockEntitytag - The tag to load from.public void saveNbt(CompoundTag tag)
BlockEntitysaveNbt in class BlockEntitytag - The tag to save to.public GlowInventory getInventory()
Copyright © 2021. All rights reserved.