public abstract class TileEntityComputer extends net.minecraft.tileentity.TileEntity implements PipeHost
| Modifier and Type | Field and Description |
|---|---|
protected li.cil.tis3d.common.tileentity.TileEntityComputer.Forwarder[] |
forwarders |
protected TileEntityComputer[] |
neighbors |
| Modifier | Constructor and Description |
|---|---|
protected |
TileEntityComputer() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkNeighbors() |
net.minecraft.util.BlockPos |
getPipeHostPosition() |
net.minecraft.world.World |
getPipeHostWorld() |
Pipe[] |
getPipes()
Get the list of all pipes managed by this computer part.
|
Pipe |
getReceivingPipe(Face face,
Port port)
Receiving pipe for the specified face and port.
|
Pipe |
getSendingPipe(Face face,
Port port)
Sending pipe for the specified face and port.
|
void |
onWriteComplete(Face sendingFace,
Port sendingPort) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbt) |
protected abstract void |
scheduleScan() |
protected void |
setNeighbor(Face face,
TileEntityComputer neighbor) |
void |
stepForwarders() |
void |
stepPipes()
Advances the logic of all pipes by calling
PipeImpl.step() on them. |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbt) |
addInfoToCrashReport, addMapping, canRenderBreaking, createAndLoadEntity, deserializeNBT, func_183000_F, getBlockMetadata, getBlockType, getCapability, getDescriptionPacket, getDistanceSq, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasCapability, hasFastRenderer, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, onDataPacket, onLoad, receiveClientEvent, restrictNBTCopy, serializeNBT, setPos, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validateprotected final TileEntityComputer[] neighbors
protected final li.cil.tis3d.common.tileentity.TileEntityComputer.Forwarder[] forwarders
public void stepPipes()
PipeImpl.step() on them.
This will advance pipes with both an active read and write operation to transferring mode, if they're not already in transferring mode.
public void stepForwarders()
public Pipe[] getPipes()
public Pipe getReceivingPipe(Face face, Port port)
face - the face to get the port for.port - the port for which to get the port.Casing.getReceivingPipe(Face, Port)public Pipe getSendingPipe(Face face, Port port)
face - the face to get the port for.port - the port for which to get the port.Casing.getSendingPipe(Face, Port)public net.minecraft.world.World getPipeHostWorld()
getPipeHostWorld in interface PipeHostpublic net.minecraft.util.BlockPos getPipeHostPosition()
getPipeHostPosition in interface PipeHostpublic void onWriteComplete(Face sendingFace, Port sendingPort)
onWriteComplete in interface PipeHostpublic void readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
readFromNBT in class net.minecraft.tileentity.TileEntitypublic void writeToNBT(net.minecraft.nbt.NBTTagCompound nbt)
writeToNBT in class net.minecraft.tileentity.TileEntityprotected abstract void scheduleScan()
public void checkNeighbors()
protected void setNeighbor(Face face, TileEntityComputer neighbor)