public abstract class TileLaserTableBase extends TileBuildCraft implements ILaserTarget, net.minecraft.inventory.IInventory, IHasWork
| Modifier and Type | Field and Description |
|---|---|
int |
clientRequiredEnergy |
protected SimpleInventory |
inv |
cache, guiWatchers, mode| Constructor and Description |
|---|
TileLaserTableBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEnergy(int energy) |
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()
Get the X coordinate of the laser stream.
|
double |
getYCoord()
Get the Y coordinate of the laser stream.
|
double |
getZCoord()
Get the Z coordinate of the laser stream.
|
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 |
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, getControlMode, getDescriptionPacket, getEnergyStored, getMaxEnergyStored, getOwner, getPacketUpdate, getTicksSinceEnergyReceived, getTile, hashCode, initialize, invalidate, onBlockPlacedBy, readData, receiveEnergy, removeGuiWatcher, sendNetworkUpdate, setBattery, setControlMode, validate, writeDataaddMapping, canUpdate, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getRenderBoundingBox, getWorldObj, hasWorldObj, isInvalid, markDirty, onChunkUnload, onDataPacket, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfoclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitpublic int clientRequiredEnergy
protected SimpleInventory inv
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()
ILaserTargetgetXCoord in interface ILaserTargetpublic double getYCoord()
ILaserTargetgetYCoord in interface ILaserTargetpublic double getZCoord()
ILaserTargetgetZCoord 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)