public final class TileEntityController extends TileEntityComputer implements net.minecraft.util.ITickable
Scans for multi-block structures if scheduled by either the controller itself or by a connected casing. Manages a list of casings and updates the modules in the casing (this is the only ticking part of a multi-block).
Controllers have no real state. They are active when powered by a redstone signal, and can be reset by right-clicking them.
| Modifier and Type | Class and Description |
|---|---|
static class |
TileEntityController.ControllerState
Possible states of a controller.
|
forwarders, neighbors| Constructor and Description |
|---|
TileEntityController() |
| Modifier and Type | Method and Description |
|---|---|
void |
forceStep()
If the controller is running, force at least one step in the next tick,
even if the controller is currently in the paused state.
|
TileEntityController.ControllerState |
getState()
Get the current state of the controller.
|
void |
haltAndCatchFire()
Reset the controller, pause for a moment and catch fire.
|
void |
invalidate() |
void |
onChunkUnload() |
protected void |
readFromNBTForClient(net.minecraft.nbt.NBTTagCompound nbt) |
protected void |
readFromNBTForServer(net.minecraft.nbt.NBTTagCompound nbt) |
void |
scheduleScan()
Schedule a rescan for connected casings.
|
void |
update() |
protected void |
writeToNBTForClient(net.minecraft.nbt.NBTTagCompound nbt) |
protected void |
writeToNBTForServer(net.minecraft.nbt.NBTTagCompound nbt) |
checkNeighbors, getPipeHostPosition, getPipeHostWorld, getPipes, getReceivingPipe, getSendingPipe, getUpdatePacket, getUpdateTag, handleUpdateTag, onDataPacket, onWriteComplete, readFromNBT, readFromNBTCommon, setNeighbor, stepForwarders, stepPipes, writeToNBT, writeToNBTCommonaddInfoToCrashReport, addMapping, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getCapability, getDisplayName, getDistanceSq, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasCapability, hasFastRenderer, hasWorld, isInvalid, markDirty, mirror, onLoad, onlyOpsCanSetNbt, receiveClientEvent, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validatepublic TileEntityController.ControllerState getState()
public void scheduleScan()
If we're currently scanning this does nothing.
scheduleScan in class TileEntityComputerpublic void forceStep()
public void haltAndCatchFire()
public void invalidate()
invalidate in class net.minecraft.tileentity.TileEntitypublic void onChunkUnload()
onChunkUnload in class net.minecraft.tileentity.TileEntityprotected void readFromNBTForServer(net.minecraft.nbt.NBTTagCompound nbt)
readFromNBTForServer in class TileEntityComputerprotected void writeToNBTForServer(net.minecraft.nbt.NBTTagCompound nbt)
writeToNBTForServer in class TileEntityComputerprotected void readFromNBTForClient(net.minecraft.nbt.NBTTagCompound nbt)
readFromNBTForClient in class TileEntityComputerprotected void writeToNBTForClient(net.minecraft.nbt.NBTTagCompound nbt)
writeToNBTForClient in class TileEntityComputerpublic void update()
update in interface net.minecraft.util.ITickable