public class BarrelTileEntity extends LockableLootTileEntity
Modifier and Type | Field and Description |
---|---|
private NonNullList<ItemStack> |
barrelContents |
private int |
numPlayersUsing |
lootTable, lootTableSeed
pos, removed, world
INFINITE_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, setLootTable
canUnlock, createUnSidedHandler, getCapability, getCustomName, getDisplayName, getName, remove, setCustomName
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, 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, getInventoryStackLimit, hasAny, isItemValidForSlot, markDirty
clearObj
hasCustomName
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability
private NonNullList<ItemStack> barrelContents
private int numPlayersUsing
private BarrelTileEntity(TileEntityType<?> p_i49963_1_)
public BarrelTileEntity()
public CompoundNBT write(CompoundNBT compound)
write
in class LockableTileEntity
public void read(CompoundNBT compound)
read
in class LockableTileEntity
public int getSizeInventory()
protected NonNullList<ItemStack> getItems()
getItems
in class LockableLootTileEntity
protected void setItems(NonNullList<ItemStack> itemsIn)
setItems
in class LockableLootTileEntity
protected ITextComponent getDefaultName()
getDefaultName
in class LockableTileEntity
protected Container createMenu(int id, PlayerInventory player)
createMenu
in class LockableTileEntity
public 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_)