public abstract class TileEntityLockableLoot extends TileEntityLockable implements ILootContainer
| Modifier and Type | Field and Description |
|---|---|
protected ITextComponent |
customName |
protected ResourceLocation |
lootTable |
protected long |
lootTableSeed |
pos, removed, worldINFINITE_EXTENT_AABB| Modifier | Constructor and Description |
|---|---|
protected |
TileEntityLockableLoot(TileEntityType<?> typeIn) |
createUnSidedHandler, getCapability, getLockCode, isLocked, read, remove, setLockCode, writeaddInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, rotate, setPos, setWorld, updateContainingBlockInfo, validateareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeight, getInventoryStackLimit, getSizeInventory, getWidth, isEmpty, markDirtycreateContainer, getGuiIDgetDisplayName, getNamecanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT, shouldRenderInPassgetCapabilityprotected ResourceLocation lootTable
protected long lootTableSeed
protected ITextComponent customName
protected TileEntityLockableLoot(TileEntityType<?> typeIn)
public static void setLootTable(IBlockReader reader, java.util.Random rand, BlockPos p_195479_2_, ResourceLocation lootTableIn)
protected boolean checkLootAndRead(NBTTagCompound compound)
protected boolean checkLootAndWrite(NBTTagCompound compound)
public void fillWithLoot(@Nullable
EntityPlayer player)
public ResourceLocation getLootTable()
getLootTable in interface ILootContainerpublic void setLootTable(ResourceLocation lootTableIn, long seedIn)
public boolean hasCustomName()
hasCustomName in interface INameablepublic void setCustomName(@Nullable
ITextComponent name)
@Nullable public ITextComponent getCustomName()
getCustomName in interface INameablepublic ItemStack getStackInSlot(int index)
getStackInSlot in interface IInventorypublic ItemStack decrStackSize(int index, int count)
decrStackSize in interface IInventorypublic ItemStack removeStackFromSlot(int index)
removeStackFromSlot in interface IInventorypublic void setInventorySlotContents(int index,
@Nullable
ItemStack stack)
setInventorySlotContents in interface IInventorypublic boolean isUsableByPlayer(EntityPlayer player)
isUsableByPlayer in interface IInventorypublic void openInventory(EntityPlayer player)
openInventory in interface IInventorypublic void closeInventory(EntityPlayer player)
closeInventory in interface IInventorypublic boolean isItemValidForSlot(int index,
ItemStack stack)
isItemValidForSlot in interface IInventorypublic int getField(int id)
getField in interface IInventorypublic void setField(int id,
int value)
setField in interface IInventorypublic int getFieldCount()
getFieldCount in interface IInventorypublic void clear()
clear in interface IInventoryprotected abstract NonNullList<ItemStack> getItems()
protected abstract void setItems(NonNullList<ItemStack> itemsIn)