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) |
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, 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, 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(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 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 p_190593_0_)
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()
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