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, lootTableSeed
pos, removed, world
INFINITE_EXTENT_AABB
Constructor and Description |
---|
ShulkerBoxTileEntity() |
ShulkerBoxTileEntity(DyeColor colorIn) |
canOpen, checkLootAndRead, checkLootAndWrite, clear, createMenu, decrStackSize, fillWithLoot, getStackInSlot, isEmpty, isUsableByPlayer, removeStackFromSlot, setInventorySlotContents, setLootTable, setLootTable
canUnlock, getCapability, getCustomName, getDisplayName, getName, remove, setCustomName
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlock
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
count, decrStackSize, getInventoryStackLimit, getStackInSlot, hasAny, isEmpty, isItemValidForSlot, isUsableByPlayer, markDirty, removeStackFromSlot, setInventorySlotContents
clear, clearObj
hasCustomName
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability
private 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 ITickableTileEntity
protected 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 IInventory
public boolean receiveClientEvent(int id, int type)
receiveClientEvent
in class TileEntity
private void func_213975_v()
public void openInventory(PlayerEntity player)
openInventory
in interface IInventory
public void closeInventory(PlayerEntity player)
closeInventory
in interface IInventory
protected ITextComponent getDefaultName()
getDefaultName
in class LockableTileEntity
public void read(CompoundNBT compound)
read
in class LockableTileEntity
public CompoundNBT write(CompoundNBT compound)
write
in class LockableTileEntity
public void loadFromNbt(CompoundNBT compound)
public CompoundNBT saveToNbt(CompoundNBT compound)
protected NonNullList<ItemStack> getItems()
getItems
in class LockableLootTileEntity
protected void setItems(NonNullList<ItemStack> itemsIn)
setItems
in class LockableLootTileEntity
public int[] getSlotsForFace(Direction side)
getSlotsForFace
in interface ISidedInventory
public boolean canInsertItem(int index, ItemStack itemStackIn, @Nullable Direction direction)
canInsertItem
in interface ISidedInventory
public boolean canExtractItem(int index, ItemStack stack, Direction direction)
canExtractItem
in interface ISidedInventory
public float getProgress(float p_190585_1_)
@Nullable public DyeColor getColor()
protected Container createMenu(int id, PlayerInventory player)
createMenu
in class LockableTileEntity
protected IItemHandler createUnSidedHandler()
createUnSidedHandler
in class LockableTileEntity