public interface Chest extends BlockEntity, ContainerBlockEntity
| Modifier and Type | Method and Description |
|---|---|
ContainerInventory |
getInventory() |
Chest |
getPair() |
boolean |
isFindable() |
boolean |
isPaired() |
boolean |
pairWith(Chest chest) |
void |
setFindable(boolean findable) |
boolean |
unpair() |
close, getBlock, getBlockState, getCustomName, getLevel, getPosition, getType, hasCustomName, isClosed, isMovable, isSpawnable, isValid, onBreak, onUpdate, scheduleUpdate, setCustomName, setDirty, setMovable, spawnTo, spawnToAllgetHopperPullSlots, getHopperPushSlotsboolean isFindable()
void setFindable(boolean findable)
ContainerInventory getInventory()
getInventory in interface InventoryHolderboolean isPaired()
Chest getPair()
boolean pairWith(Chest chest)
boolean unpair()
Copyright © 2021. All rights reserved.