public class TileEntityAssemblyController extends TileEntityPneumaticBase implements IAssemblyMachine, IMinWorkingPressure, net.minecraft.inventory.container.INamedContainerProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
TileEntityAssemblyController.AssemblySystem |
TileEntityBase.UpgradeHandler| Modifier and Type | Field and Description |
|---|---|
AssemblyProgram |
curProgram |
java.lang.String |
displayedText |
AssemblyProgram.EnumMachine |
duplicateMachine |
boolean |
hasProblem |
boolean |
isMachineDuplicate |
boolean |
isMachineMissing |
AssemblyProgram.EnumMachine |
missingMachine |
airHandler| Constructor and Description |
|---|
TileEntityAssemblyController() |
| 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.
|
net.minecraft.inventory.container.Container |
createMenu(int i,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.entity.player.PlayerEntity playerEntity) |
java.util.List<IAssemblyMachine> |
findMachines(int max) |
AssemblyProgram.EnumMachine |
getAssemblyType()
Get this machine's type.
|
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() |
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
boolean |
isIdle()
Returns true when the machine is done with moving/drilling/...
|
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 |
setControllerPos(net.minecraft.util.math.BlockPos controllerPos)
Inform this machine of its controller's position.
|
void |
setSpeed(float speed)
Sets the speed of the machine, used when Speed Upgrades are inserted in the Assembly Controller
|
protected boolean |
shouldRerenderChunkOnDescUpdate() |
void |
tick() |
addAir, addLuaMethods, forceLeak, getCapability, getCriticalPressure, getDangerPressure, getDefaultVolume, getPressure, handleUpdateTag, hasNoConnectedAirHandlers, initializeHullAirHandlerClient, initializeHullAirHandlers, onBlockRotated, onFirstServerTick, onUpgradesChanged, readFromPacket, setRemoved, writeToPacketclearCache, countPlayersUsing, getApplicableUpgrades, getCachedNeighbor, getContentsToDrop, getCurrentRecipeIdSynced, getCustomName, getDescriptionFields, getDisplayName, getHeatCap, getLuaMethodRegistry, getModelData, getName, getPeripheralType, getPosition, getRotation, getSpeedMultiplierFromUpgrades, getSpeedUsageMultiplierFromUpgrades, getUpdateTag, getUpgradeAcceptorTranslationKey, getUpgradeCache, getUpgradeHandler, getUpgrades, handleGUIButtonPress, isGuiUseableByPlayer, onDescUpdate, onGuiUpdate, onNeighborTileUpdate, requestModelDataUpdate, sendDescriptionPacket, serializeExtraItemData, setCustomName, setPreserveStateOnBreak, shouldPreserveStateOnBreak, 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, waitgetDisplayNamepublic AssemblyProgram curProgram
public boolean isMachineMissing
public boolean isMachineDuplicate
public AssemblyProgram.EnumMachine missingMachine
public AssemblyProgram.EnumMachine duplicateMachine
public java.lang.String displayedText
public boolean hasProblem
protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> getInventoryCap()
getInventoryCap in class TileEntityBasepublic net.minecraftforge.items.IItemHandler getPrimaryInventory()
getPrimaryInventory in class TileEntityBasepublic void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class TileEntityPneumaticBaseprotected boolean shouldRerenderChunkOnDescUpdate()
shouldRerenderChunkOnDescUpdate in class TileEntityBasepublic java.util.List<IAssemblyMachine> findMachines(int max)
public void onNeighborBlockUpdate(net.minecraft.util.math.BlockPos fromPos)
TileEntityBaseonNeighborBlockUpdate in class TileEntityPneumaticBasefromPos - the blockpos of the block that caused this updatepublic boolean canConnectPneumatic(net.minecraft.util.Direction side)
TileEntityPneumaticBasecanConnectPneumatic in class TileEntityPneumaticBaseside - the side to checkpublic net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in interface net.minecraftforge.common.extensions.IForgeTileEntitypublic 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 boolean isIdle()
IAssemblyMachineisIdle in interface IAssemblyMachinepublic void setSpeed(float speed)
IAssemblyMachinesetSpeed in interface IAssemblyMachinespeed - the speedpublic float getMinWorkingPressure()
IMinWorkingPressuregetMinWorkingPressure in interface IMinWorkingPressurepublic AssemblyProgram.EnumMachine getAssemblyType()
IAssemblyMachinegetAssemblyType in interface IAssemblyMachinepublic void setControllerPos(net.minecraft.util.math.BlockPos controllerPos)
IAssemblyMachinesetControllerPos in interface IAssemblyMachinecontrollerPos - the controller's blockpos@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