public abstract class TileEntityPneumaticBase extends TileEntityTickableBase
TileEntityBase.UpgradeHandler| Modifier and Type | Field and Description |
|---|---|
protected IAirHandlerMachine |
airHandler |
| Constructor and Description |
|---|
TileEntityPneumaticBase(net.minecraft.tileentity.TileEntityType type,
float dangerPressure,
float criticalPressure,
int volume,
int upgradeSlots) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAir(int air) |
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.
|
void |
forceLeak(net.minecraft.util.Direction dir) |
<T> net.minecraftforge.common.util.LazyOptional<T> |
getCapability(net.minecraftforge.common.capabilities.Capability<T> cap,
net.minecraft.util.Direction side) |
float |
getCriticalPressure() |
float |
getDangerPressure() |
int |
getDefaultVolume() |
float |
getPressure() |
void |
handleUpdateTag(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag) |
boolean |
hasNoConnectedAirHandlers() |
void |
initializeHullAirHandlerClient(net.minecraft.util.Direction dir,
IAirHandlerMachine handler) |
void |
initializeHullAirHandlers() |
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag) |
void |
onBlockRotated() |
protected void |
onFirstServerTick() |
void |
onNeighborBlockUpdate(net.minecraft.util.math.BlockPos fromPos)
Called when a neighboring block changes state (i.e.
|
void |
onUpgradesChanged()
Called when a machine's upgrades have changed in any way.
|
void |
readFromPacket(net.minecraft.nbt.CompoundNBT tag)
Encoded into the description packet.
|
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT tag) |
void |
setRemoved() |
void |
tick() |
void |
writeToPacket(net.minecraft.nbt.CompoundNBT tag)
Encoded into the description packet.
|
countPlayersUsing, getApplicableUpgrades, getCachedNeighbor, getContentsToDrop, getCurrentRecipeIdSynced, getCustomName, getDescriptionFields, getDisplayName, getHeatCap, getInventoryCap, getLuaMethodRegistry, getModelData, getName, getPeripheralType, getPosition, getPrimaryInventory, getRotation, getSpeedMultiplierFromUpgrades, getSpeedUsageMultiplierFromUpgrades, getUpdateTag, getUpgradeAcceptorTranslationKey, getUpgradeCache, getUpgradeHandler, getUpgrades, handleGUIButtonPress, isGuiUseableByPlayer, onDescUpdate, onGuiUpdate, onNeighborTileUpdate, requestModelDataUpdate, sendDescriptionPacket, serializeExtraItemData, setChanged, setCustomName, setPreserveStateOnBreak, shouldPreserveStateOnBreak, shouldRerenderChunkOnDescUpdate, shouldSyncField, updateNeighboursclearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getUpdatePacket, getViewDistance, 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, waitprotected final IAirHandlerMachine airHandler
public TileEntityPneumaticBase(net.minecraft.tileentity.TileEntityType type,
float dangerPressure,
float criticalPressure,
int volume,
int upgradeSlots)
public void handleUpdateTag(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag)
handleUpdateTag in interface net.minecraftforge.common.extensions.IForgeTileEntityhandleUpdateTag in class TileEntityBaseprotected void onFirstServerTick()
onFirstServerTick in class TileEntityBasepublic void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class TileEntityTickableBasepublic void setRemoved()
setRemoved in class TileEntityBasepublic void onUpgradesChanged()
TileEntityBaseonUpgradesChanged in interface IUpgradeHolderonUpgradesChanged in class TileEntityBasepublic void onBlockRotated()
onBlockRotated in class TileEntityBase@Nonnull
public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(@Nonnull
net.minecraftforge.common.capabilities.Capability<T> cap,
@Nullable
net.minecraft.util.Direction side)
getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability 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 void initializeHullAirHandlers()
public void initializeHullAirHandlerClient(net.minecraft.util.Direction dir,
IAirHandlerMachine handler)
public void onNeighborBlockUpdate(net.minecraft.util.math.BlockPos fromPos)
TileEntityBaseonNeighborBlockUpdate in class TileEntityBasefromPos - the blockpos of the block that caused this updatepublic 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 TileEntityBasetag - NBT tagpublic 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 TileEntityBasetag - NBT tagpublic void addLuaMethods(LuaMethodRegistry registry)
ILuaMethodProvideraddLuaMethods in interface ILuaMethodProvideraddLuaMethods in class TileEntityBaseregistry - the registry to populatepublic float getPressure()
public float getDangerPressure()
public float getCriticalPressure()
public void addAir(int air)
public boolean canConnectPneumatic(net.minecraft.util.Direction side)
side - the side to checkpublic int getDefaultVolume()
public void forceLeak(net.minecraft.util.Direction dir)
public boolean hasNoConnectedAirHandlers()