public class TileProgrammingTable extends TileLaserTableBase implements net.minecraft.inventory.IInventory, net.minecraft.inventory.ISidedInventory, ICommandReceiver
| Modifier and Type | Field and Description |
|---|---|
IProgrammingRecipe |
currentRecipe |
java.lang.String |
currentRecipeId |
static int |
HEIGHT |
int |
optionId |
java.util.List<net.minecraft.item.ItemStack> |
options |
static int |
WIDTH |
clientRequiredEnergy, invcache, guiWatchers, mode| Constructor and Description |
|---|
TileProgrammingTable() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCraft() |
boolean |
canExtractItem(int slot,
net.minecraft.item.ItemStack stack,
int side) |
boolean |
canInsertItem(int slot,
net.minecraft.item.ItemStack stack,
int side) |
boolean |
canUpdate() |
void |
findRecipe() |
int[] |
getAccessibleSlotsFromSide(int side) |
java.lang.String |
getInventoryName() |
int |
getRequiredEnergy() |
int |
getSizeInventory() |
boolean |
hasCustomInventoryName() |
boolean |
hasWork()
Check if the Tile Entity is currently doing any work.
|
boolean |
isItemValidForSlot(int slot,
net.minecraft.item.ItemStack stack) |
void |
readData(io.netty.buffer.ByteBuf stream)
Deserializes the state from the stream
|
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbt) |
void |
receiveCommand(java.lang.String command,
cpw.mods.fml.relauncher.Side side,
java.lang.Object sender,
io.netty.buffer.ByteBuf stream) |
void |
rpcSelectOption(int pos) |
void |
setInventorySlotContents(int slot,
net.minecraft.item.ItemStack stack) |
void |
updateEntity() |
void |
updateRecipe() |
void |
writeData(io.netty.buffer.ByteBuf stream)
Serializes the state to the stream
|
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbt) |
addEnergy, closeInventory, decrStackSize, getEnergy, getGUINetworkData, getInventoryStackLimit, getProgressScaled, getRecentEnergyAverage, getStackInSlot, getStackInSlotOnClosing, getXCoord, getYCoord, getZCoord, isInvalidTarget, isUseableByPlayer, openInventory, receiveLaserEnergy, requiresLaserEnergy, sendGUINetworkData, setEnergy, subtractEnergyaddGuiWatcher, canConnectEnergy, destroy, equals, extractEnergy, getBattery, getBlock, getControlMode, getDescriptionPacket, getEnergyStored, getMaxEnergyStored, getOwner, getPacketUpdate, getTicksSinceEnergyReceived, getTile, hashCode, initialize, invalidate, onBlockPlacedBy, receiveEnergy, removeGuiWatcher, sendNetworkUpdate, setBattery, setControlMode, validateaddMapping, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getRenderBoundingBox, getWorldObj, hasWorldObj, isInvalid, markDirty, onChunkUnload, onDataPacket, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfopublic static final int WIDTH
public static final int HEIGHT
public java.lang.String currentRecipeId
public IProgrammingRecipe currentRecipe
public java.util.List<net.minecraft.item.ItemStack> options
public int optionId
public boolean canUpdate()
canUpdate in class net.minecraft.tileentity.TileEntitypublic void updateEntity()
updateEntity in class TileLaserTableBasepublic int getSizeInventory()
getSizeInventory in interface net.minecraft.inventory.IInventorypublic void setInventorySlotContents(int slot,
net.minecraft.item.ItemStack stack)
setInventorySlotContents in interface net.minecraft.inventory.IInventorysetInventorySlotContents in class TileLaserTableBasepublic java.lang.String getInventoryName()
getInventoryName in interface net.minecraft.inventory.IInventorypublic void readData(io.netty.buffer.ByteBuf stream)
ISerializablereadData in interface ISerializablereadData in class TileBuildCraftpublic void writeData(io.netty.buffer.ByteBuf stream)
ISerializablewriteData in interface ISerializablewriteData in class TileBuildCraftpublic void readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
readFromNBT in class TileLaserTableBasepublic void writeToNBT(net.minecraft.nbt.NBTTagCompound nbt)
writeToNBT in class TileLaserTableBasepublic int getRequiredEnergy()
getRequiredEnergy in class TileLaserTableBasepublic void findRecipe()
public void updateRecipe()
public void rpcSelectOption(int pos)
public void receiveCommand(java.lang.String command,
cpw.mods.fml.relauncher.Side side,
java.lang.Object sender,
io.netty.buffer.ByteBuf stream)
receiveCommand in interface ICommandReceiverpublic boolean hasWork()
IHasWorkpublic boolean canCraft()
canCraft in class TileLaserTableBasepublic boolean isItemValidForSlot(int slot,
net.minecraft.item.ItemStack stack)
isItemValidForSlot in interface net.minecraft.inventory.IInventorypublic boolean hasCustomInventoryName()
hasCustomInventoryName in interface net.minecraft.inventory.IInventorypublic int[] getAccessibleSlotsFromSide(int side)
getAccessibleSlotsFromSide in interface net.minecraft.inventory.ISidedInventorypublic boolean canInsertItem(int slot,
net.minecraft.item.ItemStack stack,
int side)
canInsertItem in interface net.minecraft.inventory.ISidedInventorypublic boolean canExtractItem(int slot,
net.minecraft.item.ItemStack stack,
int side)
canExtractItem in interface net.minecraft.inventory.ISidedInventory