public class ShulkerBoxTileEntity extends LockableLootTileEntity implements ISidedInventory, ITickableTileEntity
Modifier and Type | Class and Description |
---|---|
static class |
ShulkerBoxTileEntity.AnimationStatus |
lootTable, lootTableSeed
pos, removed, world
INFINITE_EXTENT_AABB
Constructor and Description |
---|
ShulkerBoxTileEntity() |
ShulkerBoxTileEntity(DyeColor colorIn) |
canOpen, checkLootAndRead, checkLootAndWrite, clear, createMenu, decrStackSize, fillWithLoot, getStackInSlot, isUsableByPlayer, removeStackFromSlot, setInventorySlotContents, setLootTable, setLootTable
canUnlock, getCapability, getCustomName, getDisplayName, getName, remove, setCustomName
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, rotate, setPos, setWorld, updateContainingBlockInfo, validate, warnInvalidBlock
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
count, decrStackSize, getInventoryStackLimit, getStackInSlot, hasAny, isItemValidForSlot, isUsableByPlayer, markDirty, removeStackFromSlot, setInventorySlotContents
clear, clearObj
hasCustomName
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability
public ShulkerBoxTileEntity(@Nullable DyeColor colorIn)
public ShulkerBoxTileEntity()
public void tick()
tick
in interface ITickableTileEntity
protected 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 IInventory
public boolean receiveClientEvent(int id, int type)
receiveClientEvent
in class TileEntity
public void openInventory(PlayerEntity player)
openInventory
in interface IInventory
public void closeInventory(PlayerEntity player)
closeInventory
in interface IInventory
protected ITextComponent getDefaultName()
getDefaultName
in class LockableTileEntity
public void read(CompoundNBT compound)
read
in class LockableTileEntity
public CompoundNBT write(CompoundNBT compound)
write
in class LockableTileEntity
public void loadFromNbt(CompoundNBT compound)
public CompoundNBT saveToNbt(CompoundNBT compound)
protected NonNullList<ItemStack> getItems()
getItems
in class LockableLootTileEntity
protected void setItems(NonNullList<ItemStack> itemsIn)
setItems
in class LockableLootTileEntity
public boolean isEmpty()
isEmpty
in interface IInventory
public int[] getSlotsForFace(Direction side)
getSlotsForFace
in interface ISidedInventory
public boolean canInsertItem(int index, ItemStack itemStackIn, @Nullable Direction direction)
canInsertItem
in interface ISidedInventory
public boolean canExtractItem(int index, ItemStack stack, Direction direction)
canExtractItem
in interface ISidedInventory
public float getProgress(float p_190585_1_)
public DyeColor getColor()
protected Container createMenu(int id, PlayerInventory player)
createMenu
in class LockableTileEntity
protected IItemHandler createUnSidedHandler()
createUnSidedHandler
in class LockableTileEntity