public class TileEntityPressureTube extends TileEntityPneumaticBase implements IAirListener, IManoMeasurable, ICamouflageableTE
TileEntityBase.UpgradeHandlerairHandler| Constructor and Description |
|---|
TileEntityPressureTube() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConnectPneumatic(net.minecraft.util.Direction side)
Checks if the given side of this TE can be pneumatically connected to.
|
void |
clearCachedShape() |
net.minecraft.util.math.shapes.VoxelShape |
getCachedTubeShape(net.minecraft.util.math.shapes.VoxelShape blockShape) |
net.minecraft.block.BlockState |
getCamouflage()
Get the camouflage state; the blockstate which will be used to render this tile entity's block.
|
net.minecraft.tileentity.TileEntity |
getConnectedNeighbor(net.minecraft.util.Direction dir) |
int |
getMaxDispersion(IAirHandlerMachine handler,
net.minecraft.util.Direction side)
Method fired to get the maximum amount of air allowed to disperse to the given direction.
|
TubeModule |
getModule(net.minecraft.util.Direction side) |
net.minecraftforge.items.IItemHandler |
getPrimaryInventory() |
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
boolean |
isSideClosed(net.minecraft.util.Direction side) |
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag) |
boolean |
mayPlaceModule(net.minecraft.util.Direction side) |
void |
onAirDispersion(IAirHandlerMachine handler,
net.minecraft.util.Direction side,
int airDispersed)
Called when air is added to, or removed from a handler, dispersed into/from a certain direction.
|
protected void |
onFirstServerTick() |
void |
onNeighborBlockUpdate(net.minecraft.util.math.BlockPos fromPos)
Called when a neighboring block changes state (i.e.
|
void |
onNeighborTileUpdate(net.minecraft.util.math.BlockPos tilePos)
Called when a neighboring tile entity changes state (specifically when
net.minecraft.world.World#updateComparatorOutputLevel(BlockPos, Block) is called. |
void |
printManometerMessage(net.minecraft.entity.player.PlayerEntity player,
java.util.List<net.minecraft.util.text.ITextComponent> text)
This method is invoked by the Manometer when a player right-clicks a TE or Entity with this interface implemented.
|
void |
readFromPacket(net.minecraft.nbt.CompoundNBT tag)
Encoded into the description packet.
|
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT nbt) |
void |
setCamouflage(net.minecraft.block.BlockState state)
Set the camouflage for the tile entity.
|
void |
setModule(net.minecraft.util.Direction side,
TubeModule module) |
void |
setSideClosed(net.minecraft.util.Direction side,
boolean closed) |
void |
tick() |
java.util.stream.Stream<TubeModule> |
tubeModules() |
void |
updateRenderBoundingBox() |
void |
writeModulesToNBT(net.minecraft.nbt.CompoundNBT tag) |
void |
writeToPacket(net.minecraft.nbt.CompoundNBT tag)
Encoded into the description packet.
|
addAir, addLuaMethods, forceLeak, getCapability, getCriticalPressure, getDangerPressure, getDefaultVolume, getPressure, handleUpdateTag, hasNoConnectedAirHandlers, initializeHullAirHandlerClient, initializeHullAirHandlers, onBlockRotated, onUpgradesChanged, setRemovedclearCache, countPlayersUsing, getApplicableUpgrades, getCachedNeighbor, getContentsToDrop, getCurrentRecipeIdSynced, getCustomName, getDescriptionFields, getDisplayName, getHeatCap, getInventoryCap, getLuaMethodRegistry, getModelData, getName, getPeripheralType, getPosition, getRotation, getSpeedMultiplierFromUpgrades, getSpeedUsageMultiplierFromUpgrades, getUpdateTag, getUpgradeAcceptorTranslationKey, getUpgradeCache, getUpgradeHandler, getUpgrades, handleGUIButtonPress, isGuiUseableByPlayer, onDescUpdate, onGuiUpdate, requestModelDataUpdate, sendDescriptionPacket, serializeExtraItemData, setCustomName, setPreserveStateOnBreak, shouldPreserveStateOnBreak, shouldRerenderChunkOnDescUpdate, shouldSyncField, updateNeighboursclearRemoved, 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, waitaddConnectedPneumaticsgetStackForState, readCamo, syncToClient, writeCamopublic 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 nbt)
save in class TileEntityPneumaticBasepublic void writeToPacket(net.minecraft.nbt.CompoundNBT tag)
TileEntityBaseTileEntityBase#write(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 writeModulesToNBT(net.minecraft.nbt.CompoundNBT tag)
public void readFromPacket(net.minecraft.nbt.CompoundNBT tag)
TileEntityBaseTileEntityBase#read(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 updateRenderBoundingBox()
public void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class TileEntityPneumaticBaseprotected void onFirstServerTick()
onFirstServerTick in class TileEntityPneumaticBasepublic void onAirDispersion(IAirHandlerMachine handler, @Nullable net.minecraft.util.Direction side, int airDispersed)
IAirListeneronAirDispersion in interface IAirListenerhandler - the air handler in questionside - the direction of air dispersalairDispersed - the amount of air dispersed to the neighbouring handler (negative when air is being added to this handler)public int getMaxDispersion(IAirHandlerMachine handler, @Nullable net.minecraft.util.Direction side)
IAirListenergetMaxDispersion in interface IAirListenerhandler - the air handler in questionside - the direction of dispersalpublic TubeModule getModule(net.minecraft.util.Direction side)
public boolean isSideClosed(net.minecraft.util.Direction side)
public void setSideClosed(net.minecraft.util.Direction side,
boolean closed)
public java.util.stream.Stream<TubeModule> tubeModules()
public boolean mayPlaceModule(net.minecraft.util.Direction side)
public void setModule(net.minecraft.util.Direction side,
TubeModule module)
public boolean canConnectPneumatic(net.minecraft.util.Direction side)
TileEntityPneumaticBasecanConnectPneumatic in class TileEntityPneumaticBaseside - the side to checkpublic void onNeighborTileUpdate(net.minecraft.util.math.BlockPos tilePos)
TileEntityBasenet.minecraft.world.World#updateComparatorOutputLevel(BlockPos, Block) is called.onNeighborTileUpdate in class TileEntityBasetilePos - the blockpos of the neighboring tile entitypublic void onNeighborBlockUpdate(net.minecraft.util.math.BlockPos fromPos)
TileEntityBaseonNeighborBlockUpdate in class TileEntityPneumaticBasefromPos - the blockpos of the block that caused this updatepublic net.minecraftforge.items.IItemHandler getPrimaryInventory()
getPrimaryInventory in class TileEntityBasepublic net.minecraft.tileentity.TileEntity getConnectedNeighbor(net.minecraft.util.Direction dir)
public net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in interface net.minecraftforge.common.extensions.IForgeTileEntitypublic void printManometerMessage(net.minecraft.entity.player.PlayerEntity player,
java.util.List<net.minecraft.util.text.ITextComponent> text)
IManoMeasurableprintManometerMessage in interface IManoMeasurableplayer - player who is right-clicking the measurable TE, and therefore needs to get the messagetext - list you can append info to. If you don't append any info no air will be used.public 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.math.shapes.VoxelShape getCachedTubeShape(net.minecraft.util.math.shapes.VoxelShape blockShape)
public void clearCachedShape()