public class TileEntityShulkerBox extends TileEntityLockableLoot implements ISidedInventory, ITickable
Modifier and Type | Class and Description |
---|---|
static class |
TileEntityShulkerBox.AnimationStatus |
customName, lootTable, lootTableSeed
pos, removed, world
INFINITE_EXTENT_AABB
Constructor and Description |
---|
TileEntityShulkerBox() |
TileEntityShulkerBox(EnumDyeColor colorIn) |
checkLootAndRead, checkLootAndWrite, decrStackSize, fillWithLoot, getCustomName, getField, getFieldCount, getLootTable, getStackInSlot, hasCustomName, isItemValidForSlot, isUsableByPlayer, removeStackFromSlot, setCustomName, setField, setInventorySlotContents, setLootTable, setLootTable
getCapability, getLockCode, isLocked, remove, setLockCode
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, rotate, setPos, setWorld, updateContainingBlockInfo, validate
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decrStackSize, getField, getFieldCount, getHeight, getStackInSlot, getWidth, isItemValidForSlot, isUsableByPlayer, markDirty, removeStackFromSlot, setField, setInventorySlotContents
getCustomName, getDisplayName, hasCustomName
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT, shouldRenderInPass
getCapability
public TileEntityShulkerBox(@Nullable EnumDyeColor colorIn)
public TileEntityShulkerBox()
protected void updateAnimation()
public TileEntityShulkerBox.AnimationStatus getAnimationStatus()
public AxisAlignedBB getBoundingBox(IBlockState p_190584_1_)
public AxisAlignedBB getBoundingBox(EnumFacing p_190587_1_)
public int getSizeInventory()
getSizeInventory
in interface IInventory
public int getInventoryStackLimit()
getInventoryStackLimit
in interface IInventory
public boolean receiveClientEvent(int id, int type)
receiveClientEvent
in class TileEntity
public void openInventory(EntityPlayer player)
openInventory
in interface IInventory
openInventory
in class TileEntityLockableLoot
public void closeInventory(EntityPlayer player)
closeInventory
in interface IInventory
closeInventory
in class TileEntityLockableLoot
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
createContainer
in interface IInteractionObject
public java.lang.String getGuiID()
getGuiID
in interface IInteractionObject
public ITextComponent getName()
public void read(NBTTagCompound compound)
read
in class TileEntityLockable
public NBTTagCompound write(NBTTagCompound compound)
write
in class TileEntityLockable
public void loadFromNbt(NBTTagCompound compound)
public NBTTagCompound saveToNbt(NBTTagCompound compound)
protected NonNullList<ItemStack> getItems()
getItems
in class TileEntityLockableLoot
protected void setItems(NonNullList<ItemStack> itemsIn)
setItems
in class TileEntityLockableLoot
public boolean isEmpty()
isEmpty
in interface IInventory
public int[] getSlotsForFace(EnumFacing side)
getSlotsForFace
in interface ISidedInventory
public boolean canInsertItem(int index, ItemStack itemStackIn, @Nullable EnumFacing direction)
canInsertItem
in interface ISidedInventory
public boolean canExtractItem(int index, ItemStack stack, EnumFacing direction)
canExtractItem
in interface ISidedInventory
public void clear()
clear
in interface IInventory
clear
in class TileEntityLockableLoot
public boolean isCleared()
public float getProgress(float p_190585_1_)
public EnumDyeColor getColor()
@Nullable public SPacketUpdateTileEntity getUpdatePacket()
getUpdatePacket
in class TileEntity
public boolean isDestroyedByCreativePlayer()
public void setDestroyedByCreativePlayer(boolean p_190579_1_)
public boolean shouldDrop()
protected IItemHandler createUnSidedHandler()
createUnSidedHandler
in class TileEntityLockable