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, world
INFINITE_EXTENT_AABB
Modifier | Constructor and Description |
---|---|
protected |
TileEntityLockableLoot(TileEntityType<?> typeIn) |
createUnSidedHandler, getCapability, getLockCode, isLocked, read, remove, setLockCode, write
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, rotate, setPos, setWorld, updateContainingBlockInfo, validate
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeight, getInventoryStackLimit, getSizeInventory, getWidth, isEmpty, markDirty
createContainer, getGuiID
getDisplayName, getName
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT, shouldRenderInPass
getCapability
protected 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 ILootContainer
public void setLootTable(ResourceLocation lootTableIn, long seedIn)
public boolean hasCustomName()
hasCustomName
in interface INameable
public void setCustomName(@Nullable ITextComponent name)
@Nullable public ITextComponent getCustomName()
getCustomName
in interface INameable
public ItemStack getStackInSlot(int index)
getStackInSlot
in interface IInventory
public ItemStack decrStackSize(int index, int count)
decrStackSize
in interface IInventory
public ItemStack removeStackFromSlot(int index)
removeStackFromSlot
in interface IInventory
public void setInventorySlotContents(int index, @Nullable ItemStack stack)
setInventorySlotContents
in interface IInventory
public boolean isUsableByPlayer(EntityPlayer player)
isUsableByPlayer
in interface IInventory
public void openInventory(EntityPlayer player)
openInventory
in interface IInventory
public void closeInventory(EntityPlayer player)
closeInventory
in interface IInventory
public boolean isItemValidForSlot(int index, ItemStack stack)
isItemValidForSlot
in interface IInventory
public int getField(int id)
getField
in interface IInventory
public void setField(int id, int value)
setField
in interface IInventory
public int getFieldCount()
getFieldCount
in interface IInventory
public void clear()
clear
in interface IInventory
protected abstract NonNullList<ItemStack> getItems()
protected abstract void setItems(NonNullList<ItemStack> itemsIn)