public class TileLaser extends TileBuildCraft implements IPowerReceptor, IActionReceptor, IMachine
| Modifier and Type | Field and Description |
|---|---|
LaserData |
laser |
protected PowerHandler |
powerHandler |
| Constructor and Description |
|---|
TileLaser() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionActivated(IAction action) |
boolean |
allowAction(IAction action) |
protected boolean |
canFindTable() |
protected boolean |
canUpdateLaser() |
void |
doWork(PowerHandler workProvider)
Call back from the PowerHandler that is called when the stored power
exceeds the activation power.
|
protected void |
findTable() |
protected float |
getMaxPowerSent() |
PowerHandler.PowerReceiver |
getPowerReceiver(net.minecraftforge.common.util.ForgeDirection side)
Get the PowerReceiver for this side of the block.
|
net.minecraft.util.AxisAlignedBB |
getRenderBoundingBox() |
net.minecraft.util.ResourceLocation |
getTexture() |
void |
initialize() |
void |
invalidate() |
boolean |
isActive() |
protected boolean |
isValidTable() |
boolean |
manageFluids() |
boolean |
manageSolids() |
protected void |
onPowerSent(double power) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
protected void |
removeLaser() |
void |
sendNetworkUpdate() |
void |
updateEntity() |
protected void |
updateLaser() |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
destroy, getDescriptionPacket, getOwner, getPacketPayload, getUpdatePacket, getWorld, handleDescriptionPacket, handleUpdatePacket, onBlockPlacedBy, postPacketHandlingaddMapping, canUpdate, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getWorldObj, hasWorldObj, isInvalid, markDirty, onChunkUnload, onDataPacket, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWorldpublic LaserData laser
protected PowerHandler powerHandler
public void initialize()
initialize in class TileBuildCraftpublic void updateEntity()
updateEntity in class TileBuildCraftprotected float getMaxPowerSent()
protected void onPowerSent(double power)
protected boolean canFindTable()
protected boolean canUpdateLaser()
protected boolean isValidTable()
protected void findTable()
protected void updateLaser()
protected void removeLaser()
public PowerHandler.PowerReceiver getPowerReceiver(net.minecraftforge.common.util.ForgeDirection side)
IPowerReceptorgetPowerReceiver in interface IPowerReceptorpublic void doWork(PowerHandler workProvider)
IPowerReceptordoWork in interface IPowerReceptorpublic 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 invalidate()
invalidate in class TileBuildCraftpublic boolean manageFluids()
manageFluids in interface IMachinepublic boolean manageSolids()
manageSolids in interface IMachinepublic boolean allowAction(IAction action)
allowAction in interface IMachinepublic void actionActivated(IAction action)
actionActivated in interface IActionReceptorpublic net.minecraft.util.ResourceLocation getTexture()
public net.minecraft.util.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in class net.minecraft.tileentity.TileEntity