public abstract class LockableLootTileEntity extends LockableTileEntity
Modifier and Type | Field and Description |
---|---|
protected ResourceLocation |
lootTable |
protected long |
lootTableSeed |
pos, removed, world
INFINITE_EXTENT_AABB
Modifier | Constructor and Description |
---|---|
protected |
LockableLootTileEntity(TileEntityType<?> typeIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
canOpen(PlayerEntity p_213904_1_) |
protected boolean |
checkLootAndRead(CompoundNBT compound) |
protected boolean |
checkLootAndWrite(CompoundNBT compound) |
void |
clear() |
Container |
createMenu(int p_createMenu_1_,
PlayerInventory p_createMenu_2_,
PlayerEntity p_createMenu_3_) |
ItemStack |
decrStackSize(int index,
int count) |
void |
fillWithLoot(PlayerEntity player) |
protected abstract NonNullList<ItemStack> |
getItems() |
ItemStack |
getStackInSlot(int index) |
boolean |
isEmpty() |
boolean |
isUsableByPlayer(PlayerEntity player) |
ItemStack |
removeStackFromSlot(int index) |
void |
setInventorySlotContents(int index,
ItemStack stack) |
protected abstract void |
setItems(NonNullList<ItemStack> itemsIn) |
static void |
setLootTable(IBlockReader reader,
java.util.Random rand,
BlockPos p_195479_2_,
ResourceLocation lootTableIn) |
void |
setLootTable(ResourceLocation lootTableIn,
long seedIn) |
canUnlock, createMenu, createUnSidedHandler, getCapability, getCustomName, getDefaultName, getDisplayName, getName, read, remove, setCustomName, write
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, getSizeInventory, hasAny, isItemValidForSlot, markDirty, openInventory
clearObj
hasCustomName
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability
@Nullable protected ResourceLocation lootTable
protected long lootTableSeed
protected LockableLootTileEntity(TileEntityType<?> typeIn)
public static void setLootTable(IBlockReader reader, java.util.Random rand, BlockPos p_195479_2_, ResourceLocation lootTableIn)
protected boolean checkLootAndRead(CompoundNBT compound)
protected boolean checkLootAndWrite(CompoundNBT compound)
public void fillWithLoot(@Nullable PlayerEntity player)
public void setLootTable(ResourceLocation lootTableIn, long seedIn)
public boolean isEmpty()
public ItemStack getStackInSlot(int index)
public ItemStack decrStackSize(int index, int count)
public ItemStack removeStackFromSlot(int index)
public void setInventorySlotContents(int index, ItemStack stack)
public boolean isUsableByPlayer(PlayerEntity player)
public void clear()
protected abstract NonNullList<ItemStack> getItems()
protected abstract void setItems(NonNullList<ItemStack> itemsIn)
public boolean canOpen(PlayerEntity p_213904_1_)
canOpen
in class LockableTileEntity
@Nullable public Container createMenu(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_)
createMenu
in interface IContainerProvider
createMenu
in class LockableTileEntity