public abstract class TileLaserTableBase extends TileBuildCraft implements ILaserTarget, net.minecraft.inventory.IInventory, IActionReceptor, IMachine
| Modifier and Type | Field and Description |
|---|---|
double |
clientRequiredEnergy |
protected SimpleInventory |
inv |
protected ActionMachineControl.Mode |
lastMode |
| Constructor and Description |
|---|
TileLaserTableBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionActivated(IAction action) |
void |
addEnergy(double energy) |
boolean |
allowAction(IAction action) |
abstract boolean |
canCraft() |
void |
closeInventory() |
net.minecraft.item.ItemStack |
decrStackSize(int slot,
int amount) |
double |
getEnergy() |
void |
getGUINetworkData(int id,
int data) |
int |
getInventoryStackLimit() |
int |
getProgressScaled(int ratio) |
int |
getRecentEnergyAverage() |
abstract double |
getRequiredEnergy() |
net.minecraft.item.ItemStack |
getStackInSlot(int slot) |
net.minecraft.item.ItemStack |
getStackInSlotOnClosing(int slot) |
int |
getXCoord() |
int |
getYCoord() |
int |
getZCoord() |
boolean |
isActive() |
boolean |
isInvalidTarget()
Return true if the Tile Entity object is no longer a valid target.
|
boolean |
isUseableByPlayer(net.minecraft.entity.player.EntityPlayer player) |
boolean |
manageFluids() |
boolean |
manageSolids() |
void |
openInventory() |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbt) |
void |
receiveLaserEnergy(double energy)
Transfers energy from the laser to the target.
|
boolean |
requiresLaserEnergy()
Returns true if the target currently needs power.
|
void |
sendGUINetworkData(net.minecraft.inventory.Container container,
net.minecraft.inventory.ICrafting iCrafting) |
void |
setEnergy(double energy) |
void |
setInventorySlotContents(int slot,
net.minecraft.item.ItemStack stack) |
void |
subtractEnergy(double energy) |
void |
updateEntity() |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbt) |
destroy, getDescriptionPacket, getOwner, getPacketPayload, getUpdatePacket, getWorld, handleDescriptionPacket, handleUpdatePacket, initialize, invalidate, onBlockPlacedBy, postPacketHandling, sendNetworkUpdateaddMapping, canUpdate, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getRenderBoundingBox, getWorldObj, hasWorldObj, isInvalid, markDirty, onChunkUnload, onDataPacket, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validatepublic double clientRequiredEnergy
protected SimpleInventory inv
protected ActionMachineControl.Mode lastMode
public void updateEntity()
updateEntity in class TileBuildCraftpublic double getEnergy()
public void setEnergy(double energy)
public void addEnergy(double energy)
public void subtractEnergy(double energy)
public abstract double getRequiredEnergy()
public int getProgressScaled(int ratio)
public int getRecentEnergyAverage()
public abstract boolean canCraft()
public boolean requiresLaserEnergy()
ILaserTargetrequiresLaserEnergy in interface ILaserTargetpublic void receiveLaserEnergy(double energy)
ILaserTargetreceiveLaserEnergy in interface ILaserTargetpublic boolean isInvalidTarget()
ILaserTargetisInvalidTarget in interface ILaserTargetpublic int getXCoord()
getXCoord in interface ILaserTargetpublic int getYCoord()
getYCoord in interface ILaserTargetpublic int getZCoord()
getZCoord in interface ILaserTargetpublic net.minecraft.item.ItemStack getStackInSlot(int slot)
getStackInSlot in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack decrStackSize(int slot,
int amount)
decrStackSize in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlotOnClosing(int slot)
getStackInSlotOnClosing in interface net.minecraft.inventory.IInventorypublic void setInventorySlotContents(int slot,
net.minecraft.item.ItemStack stack)
setInventorySlotContents in interface net.minecraft.inventory.IInventorypublic int getInventoryStackLimit()
getInventoryStackLimit in interface net.minecraft.inventory.IInventorypublic boolean isUseableByPlayer(net.minecraft.entity.player.EntityPlayer player)
isUseableByPlayer in interface net.minecraft.inventory.IInventorypublic void openInventory()
openInventory in interface net.minecraft.inventory.IInventorypublic void closeInventory()
closeInventory in interface net.minecraft.inventory.IInventorypublic void writeToNBT(net.minecraft.nbt.NBTTagCompound nbt)
writeToNBT in class TileBuildCraftpublic void readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
readFromNBT in class TileBuildCraftpublic void getGUINetworkData(int id,
int data)
public void sendGUINetworkData(net.minecraft.inventory.Container container,
net.minecraft.inventory.ICrafting iCrafting)
public 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 IActionReceptor