public final class TileEntityCasing extends TileEntityComputer implements SidedInventoryProxy, CasingProxy, InfraredReceiver
Manages modules installed in it and takes care of maintaining network state with other casings (i.e. injects virtual forwarding module in slots between two casing blocks to relay data between the casings).
Also takes care of notifying a connected controller if some state changed, so that the controller can re-scan for a multi-block.
Casings do not tick. The modules installed in them are driven by a controller (transitively) connected to their casing.
forwarders, neighbors| Constructor and Description |
|---|
TileEntityCasing() |
| Modifier and Type | Method and Description |
|---|---|
Casing |
getCasing() |
TileEntityController |
getController() |
net.minecraft.network.Packet |
getDescriptionPacket() |
net.minecraft.inventory.ISidedInventory |
getInventory() |
double |
getMaxRenderDistanceSquared() |
void |
invalidate() |
boolean |
isEnabled() |
boolean |
isUseableByPlayer(net.minecraft.entity.player.EntityPlayer player) |
void |
lock(net.minecraft.item.ItemStack stack) |
void |
markRedstoneDirty() |
void |
notifyModulesOfBlockChange(net.minecraft.block.Block neighborBlock) |
void |
onChunkUnload() |
void |
onDataPacket(net.minecraft.network.NetworkManager manager,
net.minecraft.network.play.server.S35PacketUpdateTileEntity packet) |
void |
onDisabled() |
void |
onEnabled() |
void |
onInfraredPacket(InfraredPacket packet,
net.minecraft.util.MovingObjectPosition hit)
Called when an infrared packet collides with this.
|
void |
onWriteComplete(Face sendingFace,
Port sendingPort) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbt) |
void |
scheduleScan() |
void |
setController(TileEntityController controller) |
void |
setEnabled(boolean value) |
void |
setModule(Face face,
Module module) |
protected void |
setNeighbor(Face face,
TileEntityComputer neighbor) |
void |
stepModules() |
void |
stepRedstone() |
void |
unlock(net.minecraft.item.ItemStack stack) |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbt) |
checkNeighbors, getPipeHostPosition, getPipeHostWorld, getPipes, getReceivingPipe, getSendingPipe, stepForwarders, stepPipesaddInfoToCrashReport, addMapping, canRenderBreaking, createAndLoadEntity, deserializeNBT, func_183000_F, getBlockMetadata, getBlockType, getCapability, getDistanceSq, getPos, getRenderBoundingBox, getTileData, getWorld, hasCapability, hasFastRenderer, hasWorldObj, isInvalid, markDirty, onLoad, receiveClientEvent, restrictNBTCopy, serializeNBT, setPos, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanExtractItem, canInsertItem, getSlotsForFaceclear, closeInventory, decrStackSize, getDisplayName, getField, getFieldCount, getInventoryStackLimit, getName, getSizeInventory, getStackInSlot, hasCustomName, isItemValidForSlot, markDirty, openInventory, removeStackFromSlot, setField, setInventorySlotContentsgetCasingWorld, getModule, getPosition, getReceivingPipe, getSendingPipe, isLocked, markDirty, sendData, sendData, sendData, sendDatapublic TileEntityController getController()
public void setController(TileEntityController controller)
public boolean isEnabled()
public void setEnabled(boolean value)
public void scheduleScan()
scheduleScan in class TileEntityComputerpublic void onEnabled()
public void onDisabled()
public void stepRedstone()
public void stepModules()
public void lock(net.minecraft.item.ItemStack stack)
public void unlock(net.minecraft.item.ItemStack stack)
public void notifyModulesOfBlockChange(net.minecraft.block.Block neighborBlock)
protected void setNeighbor(Face face, TileEntityComputer neighbor)
setNeighbor in class TileEntityComputerpublic void onWriteComplete(Face sendingFace, Port sendingPort)
onWriteComplete in interface PipeHostonWriteComplete in class TileEntityComputerpublic boolean isUseableByPlayer(net.minecraft.entity.player.EntityPlayer player)
isUseableByPlayer in interface InventoryProxyisUseableByPlayer in interface net.minecraft.inventory.IInventorypublic net.minecraft.inventory.ISidedInventory getInventory()
getInventory in interface InventoryProxygetInventory in interface SidedInventoryProxypublic Casing getCasing()
getCasing in interface CasingProxypublic void onInfraredPacket(InfraredPacket packet, net.minecraft.util.MovingObjectPosition hit)
InfraredReceiveronInfraredPacket in interface InfraredReceiverpacket - the packet that collided with this.hit - the information on the hit.public void invalidate()
invalidate in class net.minecraft.tileentity.TileEntitypublic void onChunkUnload()
onChunkUnload in class net.minecraft.tileentity.TileEntitypublic void readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
readFromNBT in class TileEntityComputerpublic void writeToNBT(net.minecraft.nbt.NBTTagCompound nbt)
writeToNBT in class TileEntityComputerpublic 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 double getMaxRenderDistanceSquared()
getMaxRenderDistanceSquared in class net.minecraft.tileentity.TileEntitypublic void markRedstoneDirty()