public class TileEntityAirCannon extends TileEntityPneumaticBase implements IMinWorkingPressure, IRedstoneControl<TileEntityAirCannon>, IGUIButtonSensitive, net.minecraft.inventory.container.INamedContainerProvider
TileEntityBase.UpgradeHandler| Modifier and Type | Field and Description |
|---|---|
boolean |
coordWithinReach |
boolean |
doneTurning |
int |
forceMult |
int |
gpsX |
int |
gpsY |
int |
gpsZ |
float |
heightAngle |
boolean |
insertingInventoryHasSpace |
float |
rotationAngle |
airHandler| Constructor and Description |
|---|
TileEntityAirCannon() |
| 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) |
float |
getForce() |
protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> |
getInventoryCap() |
float |
getMinWorkingPressure()
Get the minimum pressure at which this machine can operate.
|
net.minecraftforge.items.IItemHandler |
getPrimaryInventory() |
RedstoneController<TileEntityAirCannon> |
getRedstoneController()
Get the redstone controller object for this TE
|
net.minecraft.util.text.IFormattableTextComponent |
getRedstoneTabTitle() |
void |
handleGUIButtonPress(java.lang.String tag,
boolean shiftHeld,
net.minecraft.entity.player.ServerPlayerEntity player) |
boolean |
hasCoordinate() |
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag) |
void |
onNeighborBlockUpdate(net.minecraft.util.math.BlockPos fromPos)
Called when a neighboring block changes state (i.e.
|
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT tag) |
void |
tick() |
addAir, forceLeak, getCapability, getCriticalPressure, getDangerPressure, getDefaultVolume, getPressure, handleUpdateTag, hasNoConnectedAirHandlers, initializeHullAirHandlerClient, initializeHullAirHandlers, onBlockRotated, onFirstServerTick, onUpgradesChanged, readFromPacket, setRemoved, writeToPacketcountPlayersUsing, getApplicableUpgrades, getCachedNeighbor, getContentsToDrop, getCurrentRecipeIdSynced, getCustomName, getDescriptionFields, getDisplayName, getHeatCap, getLuaMethodRegistry, getModelData, getName, getPeripheralType, getPosition, getRotation, getSpeedMultiplierFromUpgrades, getSpeedUsageMultiplierFromUpgrades, getUpdateTag, getUpgradeAcceptorTranslationKey, getUpgradeCache, getUpgradeHandler, getUpgrades, 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, waitgetCurrentRedstonePower, getRedstoneMode, onRedstoneModeChangedgetDisplayNamepublic float rotationAngle
public float heightAngle
public int forceMult
public boolean doneTurning
public int gpsX
public int gpsY
public int gpsZ
public boolean coordWithinReach
public boolean insertingInventoryHasSpace
public void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class TileEntityPneumaticBasepublic boolean hasCoordinate()
public boolean canConnectPneumatic(net.minecraft.util.Direction side)
TileEntityPneumaticBasecanConnectPneumatic in class TileEntityPneumaticBaseside - the side to checkpublic float getForce()
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 TileEntityPneumaticBase@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.IContainerProviderpublic RedstoneController<TileEntityAirCannon> getRedstoneController()
IRedstoneControlgetRedstoneController in interface IRedstoneControl<TileEntityAirCannon>public void handleGUIButtonPress(java.lang.String tag,
boolean shiftHeld,
net.minecraft.entity.player.ServerPlayerEntity player)
handleGUIButtonPress in interface IGUIButtonSensitivehandleGUIButtonPress in class TileEntityBasepublic void onNeighborBlockUpdate(net.minecraft.util.math.BlockPos fromPos)
TileEntityBaseonNeighborBlockUpdate in class TileEntityPneumaticBasefromPos - the blockpos of the block that caused this updatepublic void addLuaMethods(LuaMethodRegistry registry)
ILuaMethodProvideraddLuaMethods in interface ILuaMethodProvideraddLuaMethods in class TileEntityPneumaticBaseregistry - the registry to populateprotected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> getInventoryCap()
getInventoryCap in class TileEntityBasepublic net.minecraftforge.items.IItemHandler getPrimaryInventory()
getPrimaryInventory in class TileEntityBasepublic float getMinWorkingPressure()
IMinWorkingPressuregetMinWorkingPressure in interface IMinWorkingPressurepublic net.minecraft.util.text.IFormattableTextComponent getRedstoneTabTitle()
getRedstoneTabTitle in interface IRedstoneControl<TileEntityAirCannon>