public class TileLaser extends TileBuildCraft implements IHasWork, IControllable
IControllable.Mode| Modifier and Type | Field and Description |
|---|---|
LaserData |
laser |
cache, guiWatchers, mode| Constructor and Description |
|---|
TileLaser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsControlMode(IControllable.Mode mode)
Check if a given control mode is accepted.
|
protected boolean |
canFindTable() |
protected boolean |
canUpdateLaser() |
protected void |
findTable() |
protected int |
getMaxPowerSent() |
net.minecraft.util.AxisAlignedBB |
getRenderBoundingBox() |
net.minecraft.util.ResourceLocation |
getTexture() |
boolean |
hasWork()
Check if the Tile Entity is currently doing any work.
|
void |
initialize() |
void |
invalidate() |
protected boolean |
isValidTable() |
protected void |
onPowerSent(int power) |
void |
readData(io.netty.buffer.ByteBuf stream)
Deserializes the state from the stream
|
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
protected void |
removeLaser() |
void |
sendNetworkUpdate() |
void |
updateEntity() |
protected void |
updateLaser() |
void |
writeData(io.netty.buffer.ByteBuf stream)
Serializes the state to the stream
|
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
addGuiWatcher, canConnectEnergy, destroy, equals, extractEnergy, getBattery, getBlock, getControlMode, getDescriptionPacket, getEnergyStored, getMaxEnergyStored, getOwner, getPacketUpdate, getTicksSinceEnergyReceived, getTile, hashCode, onBlockPlacedBy, receiveEnergy, removeGuiWatcher, setBattery, setControlMode, validateaddMapping, canUpdate, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getWorldObj, hasWorldObj, isInvalid, markDirty, onChunkUnload, onDataPacket, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfoclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetControlMode, setControlModepublic LaserData laser
public void initialize()
initialize in class TileBuildCraftpublic void updateEntity()
updateEntity in class TileBuildCraftprotected int getMaxPowerSent()
protected void onPowerSent(int power)
protected boolean canFindTable()
protected boolean canUpdateLaser()
protected boolean isValidTable()
protected void findTable()
protected void updateLaser()
protected void removeLaser()
public void sendNetworkUpdate()
sendNetworkUpdate in class TileBuildCraftpublic void readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
readFromNBT in class TileBuildCraftpublic void writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
writeToNBT in class TileBuildCraftpublic void readData(io.netty.buffer.ByteBuf stream)
ISerializablereadData in interface ISerializablereadData in class TileBuildCraftpublic void writeData(io.netty.buffer.ByteBuf stream)
ISerializablewriteData in interface ISerializablewriteData in class TileBuildCraftpublic void invalidate()
invalidate in class TileBuildCraftpublic boolean hasWork()
IHasWorkpublic net.minecraft.util.ResourceLocation getTexture()
public net.minecraft.util.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in class net.minecraft.tileentity.TileEntitypublic boolean acceptsControlMode(IControllable.Mode mode)
IControllableacceptsControlMode in interface IControllable