Class ShulkerBoxBlockEntity
java.lang.Object
org.cloudburstmc.server.blockentity.BaseBlockEntity
org.cloudburstmc.server.blockentity.ShulkerBoxBlockEntity
- All Implemented Interfaces:
org.cloudburstmc.api.blockentity.BlockEntity,org.cloudburstmc.api.blockentity.ContainerBlockEntity,org.cloudburstmc.api.blockentity.ShulkerBox,org.cloudburstmc.api.inventory.InventoryHolder
public class ShulkerBoxBlockEntity
extends BaseBlockEntity
implements org.cloudburstmc.api.blockentity.ShulkerBox
Created by PetteriM1
-
Field Summary
Fields inherited from class org.cloudburstmc.server.blockentity.BaseBlockEntity
closed, id, ID_ALLOCATOR, lastUpdate, movable, server, timing -
Constructor Summary
ConstructorsConstructorDescriptionShulkerBoxBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type, org.cloudburstmc.api.level.chunk.Chunk chunk, com.nukkitx.math.vector.Vector3i position) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()bytebooleanbooleanisValid()voidloadAdditionalData(com.nukkitx.nbt.NbtMap tag)voidsaveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)voidsetFacing(int facing)Methods inherited from class org.cloudburstmc.server.blockentity.BaseBlockEntity
getBlock, getBlockState, getChunk, getChunkTag, getClientTag, getCustomName, getId, getItemTag, getLevel, getPosition, getServer, getServerTag, getTag, getType, hasCustomName, init, isClosed, isMovable, onBreak, onUpdate, saveClientData, scheduleUpdate, setCustomName, setDirty, setMovable, spawnTo, spawnToAll, updateFromClient, updateNbtMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudburstmc.api.blockentity.BlockEntity
getBlock, getBlockState, getCustomName, getLevel, getPosition, getType, hasCustomName, isClosed, isMovable, onBreak, onUpdate, scheduleUpdate, setCustomName, setDirty, setMovable, spawnTo, spawnToAllMethods inherited from interface org.cloudburstmc.api.blockentity.ContainerBlockEntity
getHopperPullSlots, getHopperPushSlots
-
Constructor Details
-
ShulkerBoxBlockEntity
public ShulkerBoxBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type, org.cloudburstmc.api.level.chunk.Chunk chunk, com.nukkitx.math.vector.Vector3i position)
-
-
Method Details
-
loadAdditionalData
public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)- Overrides:
loadAdditionalDatain classBaseBlockEntity
-
saveAdditionalData
public void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)- Overrides:
saveAdditionalDatain classBaseBlockEntity
-
getFacing
public byte getFacing() -
setFacing
public void setFacing(int facing) -
close
public void close()- Specified by:
closein interfaceorg.cloudburstmc.api.blockentity.BlockEntity- Overrides:
closein classBaseBlockEntity
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceorg.cloudburstmc.api.blockentity.BlockEntity- Specified by:
isValidin classBaseBlockEntity
-
getInventory
- Specified by:
getInventoryin interfaceorg.cloudburstmc.api.inventory.InventoryHolder- Specified by:
getInventoryin interfaceorg.cloudburstmc.api.blockentity.ShulkerBox
-
isSpawnable
public boolean isSpawnable()- Specified by:
isSpawnablein interfaceorg.cloudburstmc.api.blockentity.BlockEntity- Overrides:
isSpawnablein classBaseBlockEntity
-