public class ShulkerBoxTileEntity extends LockableLootTileEntity implements ISidedInventory, ITickableTileEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
ShulkerBoxTileEntity.AnimationStatus |
lootTable, lootTableSeedpos, removed, worldINFINITE_EXTENT_AABB| Constructor and Description |
|---|
ShulkerBoxTileEntity() |
ShulkerBoxTileEntity(DyeColor colorIn) |
canOpen, checkLootAndRead, checkLootAndWrite, clear, createMenu, decrStackSize, fillWithLoot, getStackInSlot, isUsableByPlayer, removeStackFromSlot, setInventorySlotContents, setLootTable, setLootTablecanUnlock, getCapability, getCustomName, getDisplayName, getName, remove, setCustomNameaddInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, rotate, setPos, setWorld, updateContainingBlockInfo, validate, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, decrStackSize, getInventoryStackLimit, getStackInSlot, hasAny, isItemValidForSlot, isUsableByPlayer, markDirty, removeStackFromSlot, setInventorySlotContentsclear, clearObjhasCustomNamecanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTgetCapabilitypublic ShulkerBoxTileEntity(@Nullable
DyeColor colorIn)
public ShulkerBoxTileEntity()
public void tick()
tick in interface ITickableTileEntityprotected void updateAnimation()
public ShulkerBoxTileEntity.AnimationStatus getAnimationStatus()
public AxisAlignedBB getBoundingBox(BlockState p_190584_1_)
public AxisAlignedBB getBoundingBox(Direction p_190587_1_)
public int getSizeInventory()
getSizeInventory in interface IInventorypublic boolean receiveClientEvent(int id,
int type)
receiveClientEvent in class TileEntitypublic void openInventory(PlayerEntity player)
openInventory in interface IInventorypublic void closeInventory(PlayerEntity player)
closeInventory in interface IInventoryprotected ITextComponent getDefaultName()
getDefaultName in class LockableTileEntitypublic void read(CompoundNBT compound)
read in class LockableTileEntitypublic CompoundNBT write(CompoundNBT compound)
write in class LockableTileEntitypublic void loadFromNbt(CompoundNBT compound)
public CompoundNBT saveToNbt(CompoundNBT compound)
protected NonNullList<ItemStack> getItems()
getItems in class LockableLootTileEntityprotected void setItems(NonNullList<ItemStack> itemsIn)
setItems in class LockableLootTileEntitypublic boolean isEmpty()
isEmpty in interface IInventorypublic int[] getSlotsForFace(Direction side)
getSlotsForFace in interface ISidedInventorypublic boolean canInsertItem(int index,
ItemStack itemStackIn,
@Nullable
Direction direction)
canInsertItem in interface ISidedInventorypublic boolean canExtractItem(int index,
ItemStack stack,
Direction direction)
canExtractItem in interface ISidedInventorypublic float getProgress(float p_190585_1_)
public DyeColor getColor()
protected Container createMenu(int id, PlayerInventory player)
createMenu in class LockableTileEntityprotected IItemHandler createUnSidedHandler()
createUnSidedHandler in class LockableTileEntity