public class TileEntityReinforcedChest extends TileEntityBase implements net.minecraft.inventory.container.INamedContainerProvider, IComparatorSupport
TileEntityBase.UpgradeHandler| Modifier and Type | Field and Description |
|---|---|
static int |
CHEST_SIZE |
static java.lang.String |
NBT_ITEMS |
| Constructor and Description |
|---|
TileEntityReinforcedChest() |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.inventory.container.Container |
createMenu(int windowId,
net.minecraft.entity.player.PlayerInventory inv,
net.minecraft.entity.player.PlayerEntity player) |
int |
getComparatorValue() |
void |
getContentsToDrop(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> drops)
Collect all items which should be dropped when this TE is broken.
|
protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> |
getInventoryCap() |
net.minecraftforge.items.IItemHandler |
getPrimaryInventory() |
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag) |
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT tag) |
void |
serializeExtraItemData(net.minecraft.nbt.CompoundNBT blockEntityTag,
boolean preserveState)
Get any extra data to be serialized onto a dropped item stack.
|
boolean |
shouldPreserveStateOnBreak()
Should this tile entity preserve its state (currently: upgrades and stored air) when broken?
By default this is true when sneak-wrenched, and false when broken by pick.
|
addLuaMethods, clearCache, countPlayersUsing, getApplicableUpgrades, getCachedNeighbor, getCapability, getCurrentRecipeIdSynced, getCustomName, getDescriptionFields, getDisplayName, getHeatCap, getLuaMethodRegistry, getModelData, getName, getPeripheralType, getPosition, getRotation, getSpeedMultiplierFromUpgrades, getSpeedUsageMultiplierFromUpgrades, getUpdateTag, getUpgradeAcceptorTranslationKey, getUpgradeCache, getUpgradeHandler, getUpgrades, handleGUIButtonPress, handleUpdateTag, isGuiUseableByPlayer, onBlockRotated, onDescUpdate, onFirstServerTick, onGuiUpdate, onNeighborBlockUpdate, onNeighborTileUpdate, onUpgradesChanged, readFromPacket, requestModelDataUpdate, sendDescriptionPacket, setCustomName, setPreserveStateOnBreak, setRemoved, shouldRerenderChunkOnDescUpdate, shouldSyncField, updateNeighbours, writeToPacketclearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getUpdatePacket, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, triggerEventareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisplayNamepublic static final int CHEST_SIZE
public static final java.lang.String NBT_ITEMS
public net.minecraftforge.items.IItemHandler getPrimaryInventory()
getPrimaryInventory in class TileEntityBase@Nonnull protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> getInventoryCap()
getInventoryCap in class TileEntityBasepublic net.minecraft.nbt.CompoundNBT save(net.minecraft.nbt.CompoundNBT tag)
save in class TileEntityBasepublic void load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag)
load in class TileEntityBasepublic boolean shouldPreserveStateOnBreak()
TileEntityBaseshouldPreserveStateOnBreak in class TileEntityBasepublic void getContentsToDrop(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> drops)
TileEntityBasegetContentsToDrop in class TileEntityBasedrops - list in which to collect dropped itemspublic void serializeExtraItemData(net.minecraft.nbt.CompoundNBT blockEntityTag,
boolean preserveState)
TileEntityBaseTileEntity#read(BlockState, CompoundNBT) method) when the itemblock is next placed.serializeExtraItemData in class TileEntityBaseblockEntityTag - the existing "BlockEntityTag" subtag to add data topreserveState - true when dropped with a wrench, false when broken with a pickaxe etc.@Nullable
public net.minecraft.inventory.container.Container createMenu(int windowId,
net.minecraft.entity.player.PlayerInventory inv,
net.minecraft.entity.player.PlayerEntity player)
createMenu in interface net.minecraft.inventory.container.IContainerProviderpublic int getComparatorValue()
getComparatorValue in interface IComparatorSupport