public class TileEntityShulkerBox extends TileEntityLockableLoot implements ITickable, ISidedInventory
| Modifier and Type | Class and Description |
|---|---|
static class |
TileEntityShulkerBox.AnimationStatus |
customName, lootTable, lootTableSeedblockType, INFINITE_EXTENT_AABB, pos, tileEntityInvalid, world| Constructor and Description |
|---|
TileEntityShulkerBox() |
TileEntityShulkerBox(EnumDyeColor colorIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExtractItem(int index,
ItemStack stack,
EnumFacing direction)
Returns true if automation can extract the given item in the given slot from the given side.
|
boolean |
canInsertItem(int index,
ItemStack itemStackIn,
EnumFacing direction)
Returns true if automation can insert the given item in the given slot from the given side.
|
void |
clear() |
void |
closeInventory(EntityPlayer player) |
Container |
createContainer(InventoryPlayer playerInventory,
EntityPlayer playerIn) |
protected IItemHandler |
createUnSidedHandler() |
TileEntityShulkerBox.AnimationStatus |
getAnimationStatus() |
AxisAlignedBB |
getBoundingBox(EnumFacing p_190587_1_) |
AxisAlignedBB |
getBoundingBox(IBlockState p_190584_1_) |
EnumDyeColor |
getColor() |
java.lang.String |
getGuiID() |
int |
getInventoryStackLimit()
Returns the maximum stack size for a inventory slot.
|
protected NonNullList<ItemStack> |
getItems() |
java.lang.String |
getName()
Get the name of this object.
|
float |
getProgress(float p_190585_1_) |
int |
getSizeInventory()
Returns the number of slots in the inventory.
|
int[] |
getSlotsForFace(EnumFacing side) |
SPacketUpdateTileEntity |
getUpdatePacket() |
boolean |
isCleared() |
boolean |
isDestroyedByCreativePlayer() |
boolean |
isEmpty() |
void |
loadFromNbt(NBTTagCompound compound) |
void |
openInventory(EntityPlayer player) |
void |
readFromNBT(NBTTagCompound compound) |
boolean |
receiveClientEvent(int id,
int type) |
static void |
registerFixesShulkerBox(DataFixer p_190593_0_) |
NBTTagCompound |
saveToNbt(NBTTagCompound compound) |
void |
setDestroyedByCreativePlayer(boolean p_190579_1_) |
boolean |
shouldDrop() |
void |
update()
Like the old updateEntity(), except more generic.
|
protected void |
updateAnimation() |
NBTTagCompound |
writeToNBT(NBTTagCompound compound) |
checkLootAndRead, checkLootAndWrite, decrStackSize, fillWithLoot, getField, getFieldCount, getLootTable, getStackInSlot, hasCustomName, isItemValidForSlot, isUsableByPlayer, removeStackFromSlot, setCustomName, setField, setInventorySlotContents, setLootTablegetCapability, getDisplayName, getLockCode, hasCapability, isLocked, setLockCodeaddInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getUpdateTag, getWorld, handleUpdateTag, hasFastRenderer, hasWorld, invalidate, isInvalid, markDirty, mirror, onChunkUnload, onDataPacket, onLoad, onlyOpsCanSetNbt, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecrStackSize, getField, getFieldCount, getStackInSlot, isItemValidForSlot, isUsableByPlayer, markDirty, removeStackFromSlot, setField, setInventorySlotContentsgetDisplayName, hasCustomNamepublic TileEntityShulkerBox()
public TileEntityShulkerBox(EnumDyeColor colorIn)
public void update()
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 IInventorypublic int getInventoryStackLimit()
getInventoryStackLimit in interface IInventorypublic boolean receiveClientEvent(int id,
int type)
receiveClientEvent in class TileEntitypublic void openInventory(EntityPlayer player)
openInventory in interface IInventoryopenInventory in class TileEntityLockableLootpublic void closeInventory(EntityPlayer player)
closeInventory in interface IInventorycloseInventory in class TileEntityLockableLootpublic Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
createContainer in interface IInteractionObjectpublic java.lang.String getGuiID()
getGuiID in interface IInteractionObjectpublic java.lang.String getName()
getName in interface IWorldNameablepublic static void registerFixesShulkerBox(DataFixer p_190593_0_)
public void readFromNBT(NBTTagCompound compound)
readFromNBT in class TileEntityLockablepublic NBTTagCompound writeToNBT(NBTTagCompound compound)
writeToNBT in class TileEntityLockablepublic void loadFromNbt(NBTTagCompound compound)
public NBTTagCompound saveToNbt(NBTTagCompound compound)
protected NonNullList<ItemStack> getItems()
getItems in class TileEntityLockableLootpublic boolean isEmpty()
isEmpty in interface IInventorypublic int[] getSlotsForFace(EnumFacing side)
getSlotsForFace in interface ISidedInventorypublic boolean canInsertItem(int index,
ItemStack itemStackIn,
EnumFacing direction)
canInsertItem in interface ISidedInventorypublic boolean canExtractItem(int index,
ItemStack stack,
EnumFacing direction)
canExtractItem in interface ISidedInventorypublic void clear()
clear in interface IInventoryclear in class TileEntityLockableLootpublic boolean isCleared()
public float getProgress(float p_190585_1_)
public EnumDyeColor getColor()
public SPacketUpdateTileEntity getUpdatePacket()
getUpdatePacket in class TileEntitypublic boolean isDestroyedByCreativePlayer()
public void setDestroyedByCreativePlayer(boolean p_190579_1_)
public boolean shouldDrop()
protected IItemHandler createUnSidedHandler()
createUnSidedHandler in class TileEntityLockable