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.network.Packet |
getDescriptionPacket() |
int |
getPipeHostPositionX() |
int |
getPipeHostPositionY() |
int |
getPipeHostPositionZ() |
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 |
onDataPacket(net.minecraft.network.NetworkManager manager,
net.minecraft.network.play.server.S35PacketUpdateTileEntity packet) |
void |
onWriteComplete(Face sendingFace,
Port sendingPort) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbt) |
protected void |
readFromNBTCommon(net.minecraft.nbt.NBTTagCompound nbt) |
protected void |
readFromNBTForClient(net.minecraft.nbt.NBTTagCompound nbt) |
protected void |
readFromNBTForServer(net.minecraft.nbt.NBTTagCompound nbt) |
protected abstract void |
scheduleScan() |
protected void |
setNeighbor(Face face,
TileEntityComputer neighbor) |
void |
stepForwarders()
Advances the virtual modules used to bridge edges between modules, calling
Forwarder#step() on them. |
void |
stepPipes()
Advances the logic of all pipes by calling
PipeImpl.step() on them. |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbt) |
protected void |
writeToNBTCommon(net.minecraft.nbt.NBTTagCompound nbt) |
protected void |
writeToNBTForClient(net.minecraft.nbt.NBTTagCompound nbt) |
protected void |
writeToNBTForServer(net.minecraft.nbt.NBTTagCompound nbt) |
addMapping, canUpdate, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getRenderBoundingBox, getWorldObj, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, updateEntity, 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()
Forwarder#step() on them.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 int getPipeHostPositionX()
getPipeHostPositionX in interface PipeHostpublic int getPipeHostPositionY()
getPipeHostPositionY in interface PipeHostpublic int getPipeHostPositionZ()
getPipeHostPositionZ 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.TileEntitypublic void onDataPacket(net.minecraft.network.NetworkManager manager,
net.minecraft.network.play.server.S35PacketUpdateTileEntity packet)
onDataPacket in class net.minecraft.tileentity.TileEntitypublic net.minecraft.network.Packet getDescriptionPacket()
getDescriptionPacket in class net.minecraft.tileentity.TileEntitypublic void checkNeighbors()
protected abstract void scheduleScan()
protected void setNeighbor(Face face, TileEntityComputer neighbor)
protected void readFromNBTForServer(net.minecraft.nbt.NBTTagCompound nbt)
protected void writeToNBTForServer(net.minecraft.nbt.NBTTagCompound nbt)
protected void readFromNBTForClient(net.minecraft.nbt.NBTTagCompound nbt)
protected void writeToNBTForClient(net.minecraft.nbt.NBTTagCompound nbt)
protected void readFromNBTCommon(net.minecraft.nbt.NBTTagCompound nbt)
protected void writeToNBTCommon(net.minecraft.nbt.NBTTagCompound nbt)