public class TileEntityElevatorBase extends TileEntityPneumaticBase implements IGUITextFieldSensitive, IRedstoneControl<TileEntityElevatorBase>, IMinWorkingPressure, ICamouflageableTE, net.minecraft.inventory.container.INamedContainerProvider
TileEntityBase.UpgradeHandler| Modifier and Type | Field and Description |
|---|---|
double |
extension |
float[] |
fakeFloorTextureUV |
int[] |
floorHeights |
int |
lightAbove |
int |
multiElevatorCount |
double |
oldExtension |
int |
ticksRunning |
airHandler| Constructor and Description |
|---|
TileEntityElevatorBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLuaMethods(LuaMethodRegistry registry)
Called lazily to populate the method registry with the methods.
|
boolean |
canConnectPneumatic(net.minecraft.util.Direction side)
Checks if the given side of this TE can be pneumatically connected to.
|
net.minecraft.inventory.container.Container |
createMenu(int i,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.entity.player.PlayerEntity playerEntity) |
net.minecraft.block.BlockState |
getCamouflage()
Get the camouflage state; the blockstate which will be used to render this tile entity's block.
|
java.lang.String |
getFloorName(int floor) |
float |
getMaxElevatorHeight() |
float |
getMinWorkingPressure()
Get the minimum pressure at which this machine can operate.
|
net.minecraftforge.items.IItemHandler |
getPrimaryInventory() |
RedstoneController<TileEntityElevatorBase> |
getRedstoneController()
Get the redstone controller object for this TE
|
net.minecraft.util.text.IFormattableTextComponent |
getRedstoneTabTitle() |
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
double |
getTargetExtension() |
java.lang.String |
getText(int textFieldID) |
double |
getViewDistance() |
void |
goToFloor(int floor) |
void |
handleGUIButtonPress(java.lang.String tag,
boolean shiftHeld,
net.minecraft.entity.player.ServerPlayerEntity player) |
boolean |
isCoreElevator() |
boolean |
isGuiUseableByPlayer(net.minecraft.entity.player.PlayerEntity par1EntityPlayer) |
boolean |
isStopped() |
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag) |
void |
moveUpgradesFromAbove()
Elevator above us has just been broken; move its upgrades & camo to this elevator base, if possible.
|
protected void |
onFirstServerTick() |
void |
onNeighborBlockUpdate(net.minecraft.util.math.BlockPos fromPos)
Called when a neighboring block changes state (i.e.
|
void |
onRedstoneModeChanged(int newModeIdx) |
void |
readFromPacket(net.minecraft.nbt.CompoundNBT tag)
Encoded into the description packet.
|
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT tag) |
void |
setCamouflage(net.minecraft.block.BlockState state)
Set the camouflage for the tile entity.
|
void |
setFloorName(int floor,
java.lang.String name) |
void |
setText(int textFieldID,
java.lang.String text) |
void |
tick() |
void |
updateFloors(boolean notifyClient) |
void |
updateMaxElevatorHeight() |
void |
writeToPacket(net.minecraft.nbt.CompoundNBT tag)
Encoded into the description packet.
|
addAir, forceLeak, getCapability, getCriticalPressure, getDangerPressure, getDefaultVolume, getPressure, handleUpdateTag, hasNoConnectedAirHandlers, initializeHullAirHandlerClient, initializeHullAirHandlers, onBlockRotated, onUpgradesChanged, setRemovedcountPlayersUsing, getApplicableUpgrades, getCachedNeighbor, getContentsToDrop, getCurrentRecipeIdSynced, getCustomName, getDescriptionFields, getDisplayName, getHeatCap, getInventoryCap, getLuaMethodRegistry, getModelData, getName, getPeripheralType, getPosition, getRotation, getSpeedMultiplierFromUpgrades, getSpeedUsageMultiplierFromUpgrades, getUpdateTag, getUpgradeAcceptorTranslationKey, getUpgradeCache, getUpgradeHandler, getUpgrades, onDescUpdate, onGuiUpdate, onNeighborTileUpdate, requestModelDataUpdate, sendDescriptionPacket, serializeExtraItemData, setChanged, setCustomName, setPreserveStateOnBreak, shouldPreserveStateOnBreak, shouldRerenderChunkOnDescUpdate, shouldSyncField, updateNeighboursclearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getUpdatePacket, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setLevelAndPosition, setPosition, triggerEventareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentRedstonePower, getRedstoneModegetStackForState, readCamo, syncToClient, writeCamogetDisplayNamepublic double extension
public int multiElevatorCount
public double oldExtension
public int[] floorHeights
public int ticksRunning
public float[] fakeFloorTextureUV
public int lightAbove
public void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class TileEntityPneumaticBaseprotected void onFirstServerTick()
onFirstServerTick in class TileEntityPneumaticBasepublic boolean isStopped()
public void handleGUIButtonPress(java.lang.String tag,
boolean shiftHeld,
net.minecraft.entity.player.ServerPlayerEntity player)
handleGUIButtonPress in interface IGUIButtonSensitivehandleGUIButtonPress in class TileEntityBasepublic void onRedstoneModeChanged(int newModeIdx)
onRedstoneModeChanged in interface IRedstoneControl<TileEntityElevatorBase>public float getMaxElevatorHeight()
public void updateMaxElevatorHeight()
public void load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag)
load in class TileEntityPneumaticBasepublic net.minecraft.nbt.CompoundNBT save(net.minecraft.nbt.CompoundNBT tag)
save in class TileEntityPneumaticBasepublic void readFromPacket(net.minecraft.nbt.CompoundNBT tag)
TileEntityBaseTileEntityBase.load(BlockState, CompoundNBT).
Prefer to use @DescSynced where possible - use this either for complex fields not handled by @DescSynced,
or for non-ticking tile entities.readFromPacket in interface IDescSyncedreadFromPacket in class TileEntityPneumaticBasetag - NBT tagpublic void writeToPacket(net.minecraft.nbt.CompoundNBT tag)
TileEntityBaseTileEntityBase.save(CompoundNBT)
Prefer to use @DescSynced where possible - use this either for complex fields not handled by @DescSynced,
or for non-ticking tile entities.writeToPacket in interface IDescSyncedwriteToPacket in class TileEntityPneumaticBasetag - NBT tagpublic void onNeighborBlockUpdate(net.minecraft.util.math.BlockPos fromPos)
TileEntityBaseonNeighborBlockUpdate in class TileEntityPneumaticBasefromPos - the blockpos of the block that caused this updatepublic void moveUpgradesFromAbove()
public void updateFloors(boolean notifyClient)
public void goToFloor(int floor)
public double getTargetExtension()
public net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in interface net.minecraftforge.common.extensions.IForgeTileEntitypublic double getViewDistance()
getViewDistance in class net.minecraft.tileentity.TileEntitypublic boolean isCoreElevator()
public boolean canConnectPneumatic(net.minecraft.util.Direction side)
TileEntityPneumaticBasecanConnectPneumatic in class TileEntityPneumaticBaseside - the side to checkpublic void setText(int textFieldID,
java.lang.String text)
setText in interface IGUITextFieldSensitivepublic java.lang.String getText(int textFieldID)
getText in interface IGUITextFieldSensitivepublic java.lang.String getFloorName(int floor)
public void setFloorName(int floor,
java.lang.String name)
public boolean isGuiUseableByPlayer(net.minecraft.entity.player.PlayerEntity par1EntityPlayer)
isGuiUseableByPlayer in class TileEntityBasepublic void addLuaMethods(LuaMethodRegistry registry)
ILuaMethodProvideraddLuaMethods in interface ILuaMethodProvideraddLuaMethods in class TileEntityPneumaticBaseregistry - the registry to populatepublic net.minecraftforge.items.IItemHandler getPrimaryInventory()
getPrimaryInventory in class TileEntityBasepublic RedstoneController<TileEntityElevatorBase> getRedstoneController()
IRedstoneControlgetRedstoneController in interface IRedstoneControl<TileEntityElevatorBase>public float getMinWorkingPressure()
IMinWorkingPressuregetMinWorkingPressure in interface IMinWorkingPressurepublic net.minecraft.block.BlockState getCamouflage()
ICamouflageableTEgetCamouflage in interface ICamouflageableTEpublic void setCamouflage(net.minecraft.block.BlockState state)
ICamouflageableTEsetCamouflage in interface ICamouflageableTEstate - the camo block statepublic net.minecraft.util.text.IFormattableTextComponent getRedstoneTabTitle()
getRedstoneTabTitle in interface IRedstoneControl<TileEntityElevatorBase>@Nullable
public net.minecraft.inventory.container.Container createMenu(int i,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.entity.player.PlayerEntity playerEntity)
createMenu in interface net.minecraft.inventory.container.IContainerProvider