public class ChestTileEntity extends LockableLootTileEntity implements IChestLid, ITickableTileEntity
| Modifier and Type | Field and Description |
|---|---|
protected float |
lidAngle |
protected int |
numPlayersUsing |
protected float |
prevLidAngle |
lootTable, lootTableSeedpos, removed, worldINFINITE_EXTENT_AABB| Modifier | Constructor and Description |
|---|---|
|
ChestTileEntity() |
protected |
ChestTileEntity(TileEntityType<?> typeIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeInventory(PlayerEntity player) |
protected Container |
createMenu(int id,
PlayerInventory player) |
static int |
func_213976_a(World p_213976_0_,
LockableTileEntity p_213976_1_,
int p_213976_2_,
int p_213976_3_,
int p_213976_4_) |
static int |
func_213977_a(World p_213977_0_,
LockableTileEntity p_213977_1_,
int p_213977_2_,
int p_213977_3_,
int p_213977_4_,
int p_213977_5_,
int p_213977_6_) |
<T> LazyOptional<T> |
getCapability(Capability<T> cap,
Direction side)
Retrieves the Optional handler for the capability requested on the specific side.
|
protected ITextComponent |
getDefaultName() |
protected NonNullList<ItemStack> |
getItems() |
float |
getLidAngle(float partialTicks) |
static int |
getPlayersUsing(IBlockReader reader,
BlockPos posIn) |
int |
getSizeInventory() |
boolean |
isEmpty() |
protected void |
onOpenOrClose() |
void |
openInventory(PlayerEntity player) |
void |
read(CompoundNBT compound) |
boolean |
receiveClientEvent(int id,
int type) |
void |
remove() |
protected void |
setItems(NonNullList<ItemStack> itemsIn) |
static void |
swapContents(ChestTileEntity chest,
ChestTileEntity otherChest) |
void |
tick() |
void |
updateContainingBlockInfo() |
CompoundNBT |
write(CompoundNBT compound) |
canOpen, checkLootAndRead, checkLootAndWrite, clear, createMenu, decrStackSize, fillWithLoot, getStackInSlot, isUsableByPlayer, removeStackFromSlot, setInventorySlotContents, setLootTable, setLootTablecanUnlock, createUnSidedHandler, getCustomName, getDisplayName, getName, setCustomNameaddInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, rotate, setPos, setWorld, validate, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, getInventoryStackLimit, hasAny, isItemValidForSlot, markDirtyclearObjhasCustomNamecanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTgetCapabilityprotected float lidAngle
protected float prevLidAngle
protected int numPlayersUsing
protected ChestTileEntity(TileEntityType<?> typeIn)
public ChestTileEntity()
public int getSizeInventory()
getSizeInventory in interface IInventorypublic boolean isEmpty()
isEmpty 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 tick()
tick in interface ITickableTileEntitypublic static int func_213977_a(World p_213977_0_, LockableTileEntity p_213977_1_, int p_213977_2_, int p_213977_3_, int p_213977_4_, int p_213977_5_, int p_213977_6_)
public static int func_213976_a(World p_213976_0_, LockableTileEntity p_213976_1_, int p_213976_2_, int p_213976_3_, int p_213976_4_)
public boolean receiveClientEvent(int id,
int type)
receiveClientEvent in class TileEntitypublic void openInventory(PlayerEntity player)
openInventory in interface IInventorypublic void closeInventory(PlayerEntity player)
closeInventory in interface IInventoryprotected void onOpenOrClose()
protected NonNullList<ItemStack> getItems()
getItems in class LockableLootTileEntityprotected void setItems(NonNullList<ItemStack> itemsIn)
setItems in class LockableLootTileEntitypublic float getLidAngle(float partialTicks)
getLidAngle in interface IChestLidpublic static int getPlayersUsing(IBlockReader reader, BlockPos posIn)
public static void swapContents(ChestTileEntity chest, ChestTileEntity otherChest)
protected Container createMenu(int id, PlayerInventory player)
createMenu in class LockableTileEntitypublic void updateContainingBlockInfo()
updateContainingBlockInfo in class TileEntitypublic <T> LazyOptional<T> getCapability(Capability<T> cap, Direction side)
ICapabilityProvidergetCapability in interface ICapabilityProvidergetCapability in class LockableTileEntitypublic void remove()
remove in class LockableTileEntity