public class DispenserTileEntity extends LockableLootTileEntity
Modifier and Type | Field and Description |
---|---|
private static java.util.Random |
RNG |
private NonNullList<ItemStack> |
stacks |
lootTable, lootTableSeed
pos, removed, world
INFINITE_EXTENT_AABB
Modifier | Constructor and Description |
---|---|
|
DispenserTileEntity() |
protected |
DispenserTileEntity(TileEntityType<?> p_i48286_1_) |
Modifier and Type | Method and Description |
---|---|
int |
addItemStack(ItemStack stack) |
protected Container |
createMenu(int id,
PlayerInventory player) |
protected ITextComponent |
getDefaultName() |
int |
getDispenseSlot() |
protected NonNullList<ItemStack> |
getItems() |
int |
getSizeInventory() |
void |
read(CompoundNBT compound) |
protected void |
setItems(NonNullList<ItemStack> itemsIn) |
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
closeInventory, count, getInventoryStackLimit, hasAny, isItemValidForSlot, markDirty, openInventory
clearObj
hasCustomName
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability
private static final java.util.Random RNG
private NonNullList<ItemStack> stacks
protected DispenserTileEntity(TileEntityType<?> p_i48286_1_)
public DispenserTileEntity()
public int getSizeInventory()
public int getDispenseSlot()
public int addItemStack(ItemStack stack)
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
protected NonNullList<ItemStack> getItems()
getItems
in class LockableLootTileEntity
protected void setItems(NonNullList<ItemStack> itemsIn)
setItems
in class LockableLootTileEntity
protected Container createMenu(int id, PlayerInventory player)
createMenu
in class LockableTileEntity