public class ShulkerBoxTileEntity extends LockableLootTileEntity implements ISidedInventory, ITickableTileEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
ShulkerBoxTileEntity.AnimationStatus |
| Modifier and Type | Field and Description |
|---|---|
private ShulkerBoxTileEntity.AnimationStatus |
animationStatus |
private DyeColor |
color |
private NonNullList<ItemStack> |
items |
private boolean |
needsColorFromWorld |
private int |
openCount |
private float |
progress |
private float |
progressOld |
private static int[] |
SLOTS |
lootTable, lootTableSeedpos, removed, worldINFINITE_EXTENT_AABB| Constructor and Description |
|---|
ShulkerBoxTileEntity() |
ShulkerBoxTileEntity(DyeColor colorIn) |
canOpen, checkLootAndRead, checkLootAndWrite, clear, createMenu, decrStackSize, fillWithLoot, getStackInSlot, isEmpty, isUsableByPlayer, removeStackFromSlot, setInventorySlotContents, setLootTable, setLootTablecanUnlock, getCapability, getCustomName, getDisplayName, getName, remove, setCustomNameaddInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, decrStackSize, getInventoryStackLimit, getStackInSlot, hasAny, isEmpty, isItemValidForSlot, isUsableByPlayer, markDirty, removeStackFromSlot, setInventorySlotContentsclear, clearObjhasCustomNamecanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTgetCapabilityprivate static final int[] SLOTS
private NonNullList<ItemStack> items
private int openCount
private ShulkerBoxTileEntity.AnimationStatus animationStatus
private float progress
private float progressOld
@Nullable private DyeColor color
private boolean needsColorFromWorld
public ShulkerBoxTileEntity(@Nullable
DyeColor colorIn)
public ShulkerBoxTileEntity()
public void tick()
tick in interface ITickableTileEntityprotected void updateAnimation()
public ShulkerBoxTileEntity.AnimationStatus getAnimationStatus()
public AxisAlignedBB getBoundingBox(BlockState p_190584_1_)
public AxisAlignedBB getBoundingBox(Direction p_190587_1_)
private AxisAlignedBB getTopBoundingBox(Direction p_190588_1_)
private void moveCollidedEntities()
public int getSizeInventory()
getSizeInventory in interface IInventorypublic boolean receiveClientEvent(int id,
int type)
receiveClientEvent in class TileEntityprivate void func_213975_v()
public void openInventory(PlayerEntity player)
openInventory in interface IInventorypublic void closeInventory(PlayerEntity player)
closeInventory in interface IInventoryprotected ITextComponent getDefaultName()
getDefaultName in class LockableTileEntitypublic void read(CompoundNBT compound)
read in class LockableTileEntitypublic CompoundNBT write(CompoundNBT compound)
write in class LockableTileEntitypublic void loadFromNbt(CompoundNBT compound)
public CompoundNBT saveToNbt(CompoundNBT compound)
protected NonNullList<ItemStack> getItems()
getItems in class LockableLootTileEntityprotected void setItems(NonNullList<ItemStack> itemsIn)
setItems in class LockableLootTileEntitypublic int[] getSlotsForFace(Direction side)
getSlotsForFace in interface ISidedInventorypublic boolean canInsertItem(int index,
ItemStack itemStackIn,
@Nullable
Direction direction)
canInsertItem in interface ISidedInventorypublic boolean canExtractItem(int index,
ItemStack stack,
Direction direction)
canExtractItem in interface ISidedInventorypublic float getProgress(float p_190585_1_)
@Nullable public DyeColor getColor()
protected Container createMenu(int id, PlayerInventory player)
createMenu in class LockableTileEntityprotected IItemHandler createUnSidedHandler()
createUnSidedHandler in class LockableTileEntity