public class TileEntityShulkerBox extends TileEntityLockableLoot implements ITickable, ISidedInventory
Modifier and Type | Class and Description |
---|---|
static class |
TileEntityShulkerBox.AnimationStatus |
customName, lootTable, lootTableSeed
blockType, INFINITE_EXTENT_AABB, pos, tileEntityInvalid, world
Constructor and Description |
---|
TileEntityShulkerBox() |
TileEntityShulkerBox(EnumDyeColor colorIn) |
checkLootAndRead, checkLootAndWrite, decrStackSize, fillWithLoot, getField, getFieldCount, getLootTable, getStackInSlot, hasCustomName, isItemValidForSlot, isUsableByPlayer, removeStackFromSlot, setCustomName, setField, setInventorySlotContents, setLootTable
getCapability, getDisplayName, getLockCode, hasCapability, isLocked, setLockCode
addInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getUpdateTag, getWorld, handleUpdateTag, hasFastRenderer, hasWorld, invalidate, isInvalid, markDirty, mirror, onChunkUnload, onDataPacket, onLoad, onlyOpsCanSetNbt, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decrStackSize, getField, getFieldCount, getStackInSlot, isItemValidForSlot, isUsableByPlayer, markDirty, removeStackFromSlot, setField, setInventorySlotContents
getDisplayName, hasCustomName
public TileEntityShulkerBox()
public TileEntityShulkerBox(@Nullable EnumDyeColor colorIn)
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 java.lang.String getName()
getName
in interface IWorldNameable
public static void registerFixesShulkerBox(DataFixer fixer)
public void readFromNBT(NBTTagCompound compound)
readFromNBT
in class TileEntityLockable
public NBTTagCompound writeToNBT(NBTTagCompound compound)
writeToNBT
in class TileEntityLockable
public void loadFromNbt(NBTTagCompound compound)
public NBTTagCompound saveToNbt(NBTTagCompound compound)
protected NonNullList<ItemStack> getItems()
getItems
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, 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