public class ChestBlockEntity extends BaseBlockEntity implements org.cloudburstmc.api.blockentity.Chest
closed, id, ID_ALLOCATOR, lastUpdate, movable, server, timing| Constructor and Description |
|---|
ChestBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type,
org.cloudburstmc.api.level.chunk.Chunk chunk,
com.nukkitx.math.vector.Vector3i position) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkPairing() |
void |
close() |
CloudContainer |
getInventory() |
ChestBlockEntity |
getPair() |
CloudChestInventory |
getRealInventory() |
boolean |
isFindable() |
boolean |
isPaired() |
boolean |
isSpawnable() |
boolean |
isValid() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
void |
onBreak() |
boolean |
onUpdate() |
boolean |
pairWith(org.cloudburstmc.api.blockentity.Chest chest) |
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
protected void |
saveClientData(com.nukkitx.nbt.NbtMapBuilder tag)
NBT data that is specifically sent to the client
|
void |
setFindable(boolean findable) |
void |
setPairlead(boolean pairlead) |
boolean |
unpair() |
getBlock, getBlockState, getChunk, getChunkTag, getClientTag, getCustomName, getId, getItemTag, getLevel, getPosition, getServer, getServerTag, getTag, getType, hasCustomName, init, isClosed, isMovable, scheduleUpdate, setCustomName, setDirty, setMovable, spawnTo, spawnToAll, updateFromClient, updateNbtMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ChestBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type,
org.cloudburstmc.api.level.chunk.Chunk chunk,
com.nukkitx.math.vector.Vector3i position)
public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
loadAdditionalData in class BaseBlockEntityprotected void saveClientData(com.nukkitx.nbt.NbtMapBuilder tag)
BaseBlockEntitysaveClientData in class BaseBlockEntitytag - tag to write data topublic void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
saveAdditionalData in class BaseBlockEntitypublic void setPairlead(boolean pairlead)
public boolean isFindable()
isFindable in interface org.cloudburstmc.api.blockentity.Chestpublic void setFindable(boolean findable)
setFindable in interface org.cloudburstmc.api.blockentity.Chestpublic void close()
close in interface org.cloudburstmc.api.blockentity.BlockEntityclose in class BaseBlockEntitypublic void onBreak()
onBreak in interface org.cloudburstmc.api.blockentity.BlockEntityonBreak in class BaseBlockEntitypublic boolean isValid()
isValid in interface org.cloudburstmc.api.blockentity.BlockEntityisValid in class BaseBlockEntitypublic CloudContainer getInventory()
getInventory in interface org.cloudburstmc.api.blockentity.ChestgetInventory in interface org.cloudburstmc.api.inventory.InventoryHolderpublic CloudChestInventory getRealInventory()
protected void checkPairing()
public boolean isPaired()
isPaired in interface org.cloudburstmc.api.blockentity.Chestpublic ChestBlockEntity getPair()
getPair in interface org.cloudburstmc.api.blockentity.Chestpublic boolean pairWith(org.cloudburstmc.api.blockentity.Chest chest)
pairWith in interface org.cloudburstmc.api.blockentity.Chestpublic boolean unpair()
unpair in interface org.cloudburstmc.api.blockentity.Chestpublic boolean isSpawnable()
isSpawnable in interface org.cloudburstmc.api.blockentity.BlockEntityisSpawnable in class BaseBlockEntitypublic boolean onUpdate()
onUpdate in interface org.cloudburstmc.api.blockentity.BlockEntityonUpdate in class BaseBlockEntityCopyright © 2021. All rights reserved.