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.math.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.
|
net.minecraft.network.play.server.SPacketUpdateTileEntity |
getUpdatePacket() |
net.minecraft.nbt.NBTTagCompound |
getUpdateTag() |
void |
handleUpdateTag(net.minecraft.nbt.NBTTagCompound nbt) |
void |
onDataPacket(net.minecraft.network.NetworkManager manager,
net.minecraft.network.play.server.SPacketUpdateTileEntity 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. |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbtIn) |
protected void |
writeToNBTCommon(net.minecraft.nbt.NBTTagCompound nbt) |
protected void |
writeToNBTForClient(net.minecraft.nbt.NBTTagCompound nbt) |
protected void |
writeToNBTForServer(net.minecraft.nbt.NBTTagCompound nbt) |
addInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getCapability, getDisplayName, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasCapability, hasFastRenderer, hasWorld, invalidate, isInvalid, markDirty, mirror, onChunkUnload, onLoad, onlyOpsCanSetNbt, receiveClientEvent, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, 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()
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 net.minecraft.util.math.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 net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbtIn)
writeToNBT in class net.minecraft.tileentity.TileEntitypublic void onDataPacket(net.minecraft.network.NetworkManager manager,
net.minecraft.network.play.server.SPacketUpdateTileEntity packet)
onDataPacket in class net.minecraft.tileentity.TileEntity@Nullable public net.minecraft.network.play.server.SPacketUpdateTileEntity getUpdatePacket()
getUpdatePacket in class net.minecraft.tileentity.TileEntitypublic void handleUpdateTag(net.minecraft.nbt.NBTTagCompound nbt)
handleUpdateTag in class net.minecraft.tileentity.TileEntitypublic net.minecraft.nbt.NBTTagCompound getUpdateTag()
getUpdateTag in class net.minecraft.tileentity.TileEntitypublic void checkNeighbors()
protected abstract void scheduleScan()
protected void setNeighbor(Face face, @Nullable 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)