public abstract class TileLaserTableBase extends TileBuildCraft implements ILaserTarget, net.minecraft.inventory.IInventory, IHasWork, IControllable
IControllable.Mode| Modifier and Type | Field and Description |
|---|---|
int |
clientRequiredEnergy |
protected SimpleInventory |
inv |
protected IControllable.Mode |
lastMode |
cache, guiWatchers| Constructor and Description |
|---|
TileLaserTableBase() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsControlMode(IControllable.Mode mode) |
void |
addEnergy(int energy) |
abstract boolean |
canCraft() |
void |
closeInventory() |
net.minecraft.item.ItemStack |
decrStackSize(int slot,
int amount) |
IControllable.Mode |
getControlMode() |
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 |
hasWork() |
boolean |
isInvalidTarget()
Return true if the Tile Entity object is no longer a valid target.
|
boolean |
isUseableByPlayer(net.minecraft.entity.player.EntityPlayer player) |
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 |
setControlMode(IControllable.Mode mode) |
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) |
addGuiWatcher, canConnectEnergy, destroy, equals, extractEnergy, getBattery, getBlock, getDescriptionPacket, getEnergyStored, getMaxEnergyStored, getOwner, getPacketUpdate, getTile, hashCode, initialize, invalidate, onBlockPlacedBy, readData, receiveEnergy, removeGuiWatcher, sendNetworkUpdate, setBattery, validate, writeDataaddMapping, canUpdate, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getRenderBoundingBox, getWorldObj, hasWorldObj, isInvalid, markDirty, onChunkUnload, onDataPacket, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfopublic int clientRequiredEnergy
protected SimpleInventory inv
protected IControllable.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 IControllable.Mode getControlMode()
getControlMode in interface IControllablepublic void setControlMode(IControllable.Mode mode)
setControlMode in interface IControllablepublic boolean acceptsControlMode(IControllable.Mode mode)
acceptsControlMode in interface IControllable