public class BarrelTileEntity extends LockableLootTileEntity
| Modifier and Type | Field and Description |
|---|---|
private NonNullList<ItemStack> |
barrelContents |
private int |
numPlayersUsing |
lootTable, lootTableSeedpos, removed, worldINFINITE_EXTENT_AABB| Modifier | Constructor and Description |
|---|---|
|
BarrelTileEntity() |
private |
BarrelTileEntity(TileEntityType<?> p_i49963_1_) |
| Modifier and Type | Method and Description |
|---|---|
void |
barrelTick() |
void |
closeInventory(PlayerEntity player) |
protected Container |
createMenu(int id,
PlayerInventory player) |
protected ITextComponent |
getDefaultName() |
protected NonNullList<ItemStack> |
getItems() |
int |
getSizeInventory() |
void |
openInventory(PlayerEntity player) |
private void |
playSound(BlockState p_213965_1_,
SoundEvent p_213965_2_) |
void |
read(CompoundNBT compound) |
private void |
scheduleTick() |
protected void |
setItems(NonNullList<ItemStack> itemsIn) |
private void |
setOpenProperty(BlockState p_213963_1_,
boolean p_213963_2_) |
CompoundNBT |
write(CompoundNBT compound) |
canOpen, checkLootAndRead, checkLootAndWrite, clear, createMenu, decrStackSize, fillWithLoot, getStackInSlot, isEmpty, isUsableByPlayer, removeStackFromSlot, setInventorySlotContents, setLootTable, setLootTablecanUnlock, createUnSidedHandler, getCapability, getCustomName, getDisplayName, getName, remove, setCustomNameaddInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, 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, serializeNBTgetCapabilityprivate NonNullList<ItemStack> barrelContents
private int numPlayersUsing
private BarrelTileEntity(TileEntityType<?> p_i49963_1_)
public BarrelTileEntity()
public CompoundNBT write(CompoundNBT compound)
write in class LockableTileEntitypublic void read(CompoundNBT compound)
read in class LockableTileEntitypublic int getSizeInventory()
protected NonNullList<ItemStack> getItems()
getItems in class LockableLootTileEntityprotected void setItems(NonNullList<ItemStack> itemsIn)
setItems in class LockableLootTileEntityprotected ITextComponent getDefaultName()
getDefaultName in class LockableTileEntityprotected Container createMenu(int id, PlayerInventory player)
createMenu in class LockableTileEntitypublic void openInventory(PlayerEntity player)
private void scheduleTick()
public void barrelTick()
public void closeInventory(PlayerEntity player)
private void setOpenProperty(BlockState p_213963_1_, boolean p_213963_2_)
private void playSound(BlockState p_213965_1_, SoundEvent p_213965_2_)