public class HopperBlockEntity extends BaseBlockEntity implements org.cloudburstmc.api.blockentity.Hopper
| Modifier and Type | Field and Description |
|---|---|
protected CloudHopperInventory |
inventory |
closed, id, ID_ALLOCATOR, lastUpdate, movable, server, timing| Constructor and Description |
|---|
HopperBlockEntity(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 |
|---|---|
void |
close() |
CloudHopperInventory |
getInventory() |
boolean |
isOnTransferCooldown() |
boolean |
isSpawnable() |
boolean |
isValid() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
void |
onBreak() |
boolean |
onUpdate() |
boolean |
pickupItems() |
boolean |
pullItems() |
boolean |
pushItems() |
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
void |
setTransferCooldown(int transferCooldown) |
getBlock, getBlockState, getChunk, getChunkTag, getClientTag, getCustomName, getId, getItemTag, getLevel, getPosition, getServer, getServerTag, getTag, getType, hasCustomName, init, isClosed, isMovable, saveClientData, scheduleUpdate, setCustomName, setDirty, setMovable, spawnTo, spawnToAll, updateFromClient, updateNbtMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected final CloudHopperInventory inventory
public HopperBlockEntity(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 BaseBlockEntitypublic void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
saveAdditionalData in class BaseBlockEntitypublic boolean isValid()
isValid in interface org.cloudburstmc.api.blockentity.BlockEntityisValid in class BaseBlockEntitypublic boolean isOnTransferCooldown()
public void setTransferCooldown(int transferCooldown)
public CloudHopperInventory getInventory()
getInventory in interface org.cloudburstmc.api.inventory.InventoryHolderpublic boolean onUpdate()
onUpdate in interface org.cloudburstmc.api.blockentity.BlockEntityonUpdate in class BaseBlockEntitypublic boolean pullItems()
public boolean pickupItems()
public 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 pushItems()
public boolean isSpawnable()
isSpawnable in interface org.cloudburstmc.api.blockentity.BlockEntityisSpawnable in class BaseBlockEntityCopyright © 2021. All rights reserved.