public abstract class TileLaserTableBase extends TileBuildCraft implements ILaserTarget, net.minecraft.inventory.IInventory, IActionReceptor, IMachine
| Modifier and Type | Field and Description |
|---|---|
int |
clientRequiredEnergy |
protected SimpleInventory |
inv |
protected ActionMachineControl.Mode |
lastMode |
| Constructor and Description |
|---|
TileLaserTableBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionActivated(IAction action) |
void |
addEnergy(int energy) |
boolean |
allowAction(IAction action) |
abstract boolean |
canCraft() |
void |
closeInventory() |
net.minecraft.item.ItemStack |
decrStackSize(int slot,
int amount) |
int |
getEnergy() |
void |
getGUINetworkData(int id,
int data) |
int |
getInventoryStackLimit() |
int |
getProgressScaled(int ratio) |
int |
getRecentEnergyAverage() |
abstract int |
getRequiredEnergy() |
net.minecraft.item.ItemStack |
getStackInSlot(int slot) |
net.minecraft.item.ItemStack |
getStackInSlotOnClosing(int slot) |
double |
getXCoord() |
double |
getYCoord() |
double |
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(int 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(int energy) |
void |
setInventorySlotContents(int slot,
net.minecraft.item.ItemStack stack) |
void |
subtractEnergy(int energy) |
void |
updateEntity() |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbt) |
canConnectEnergy, destroy, equals, extractEnergy, getBattery, getDescriptionPacket, getEnergyStored, getMaxEnergyStored, getOwner, getPacketPayload, getUpdatePacket, getWorld, handleDescriptionPacket, handleUpdatePacket, hashCode, initialize, invalidate, onBlockPlacedBy, postPacketHandling, receiveEnergy, sendNetworkUpdate, setBatteryaddMapping, canUpdate, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getRenderBoundingBox, getWorldObj, hasWorldObj, isInvalid, markDirty, onChunkUnload, onDataPacket, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validatepublic int clientRequiredEnergy
protected SimpleInventory inv
protected ActionMachineControl.Mode lastMode
public void updateEntity()
updateEntity in class TileBuildCraftpublic int getEnergy()
public void setEnergy(int energy)
public void addEnergy(int energy)
public void subtractEnergy(int energy)
public abstract int getRequiredEnergy()
public int getProgressScaled(int ratio)
public int getRecentEnergyAverage()
public abstract boolean canCraft()
public boolean requiresLaserEnergy()
ILaserTargetrequiresLaserEnergy in interface ILaserTargetpublic void receiveLaserEnergy(int energy)
ILaserTargetreceiveLaserEnergy in interface ILaserTargetpublic boolean isInvalidTarget()
ILaserTargetisInvalidTarget in interface ILaserTargetpublic double getXCoord()
getXCoord in interface ILaserTargetpublic double getYCoord()
getYCoord in interface ILaserTargetpublic double 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