public class TileEntityPneumaticDoor extends TileEntityTickableBase
TileEntityBase.UpgradeHandler| Modifier and Type | Field and Description |
|---|---|
int |
color |
float |
oldRotationAngle |
boolean |
rightGoing |
float |
rotationAngle |
| Constructor and Description |
|---|
TileEntityPneumaticDoor() |
| Modifier and Type | Method and Description |
|---|---|
net.minecraftforge.items.IItemHandler |
getPrimaryInventory() |
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
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 |
setColor(net.minecraft.item.DyeColor dyeColor) |
void |
setRotationAngle(float rotationAngle) |
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.
|
tickaddLuaMethods, clearCache, countPlayersUsing, getApplicableUpgrades, getCachedNeighbor, getCapability, getContentsToDrop, getCurrentRecipeIdSynced, getCustomName, getDescriptionFields, getDisplayName, getHeatCap, getInventoryCap, 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, waitpublic float rotationAngle
public float oldRotationAngle
public boolean rightGoing
public int color
public void setRotationAngle(float rotationAngle)
public boolean setColor(net.minecraft.item.DyeColor dyeColor)
public 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 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.public net.minecraftforge.items.IItemHandler getPrimaryInventory()
getPrimaryInventory in class TileEntityBasepublic net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
public boolean shouldPreserveStateOnBreak()
TileEntityBaseshouldPreserveStateOnBreak in class TileEntityBase