public class TileAutoWorkbench extends TileBuildCraft implements net.minecraft.inventory.ISidedInventory, IHasWork, IRedstoneEngineReceiver
| Modifier and Type | Class and Description |
|---|---|
class |
TileAutoWorkbench.LocalInventoryCrafting |
| Modifier and Type | Field and Description |
|---|---|
static int |
CRAFT_TIME |
TileAutoWorkbench.LocalInventoryCrafting |
craftMatrix |
int |
progress |
static int |
SLOT_RESULT |
static int |
UPDATE_TIME |
cache, guiWatchers, mode| Constructor and Description |
|---|
TileAutoWorkbench() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConnectEnergy(net.minecraftforge.common.util.ForgeDirection side)
Returns TRUE if the TileEntity can connect on a given side.
|
boolean |
canConnectRedstoneEngine(net.minecraftforge.common.util.ForgeDirection side)
This function is queried on every attempt to receive energy from a
redstone engine as well.
|
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 |
closeInventory() |
net.minecraft.item.ItemStack |
decrStackSize(int slot,
int count) |
int[] |
getAccessibleSlotsFromSide(int var1) |
java.lang.ref.WeakReference<net.minecraft.entity.player.EntityPlayer> |
getInternalPlayer() |
java.lang.String |
getInventoryName() |
int |
getInventoryStackLimit() |
int |
getProgressScaled(int i) |
int |
getSizeInventory() |
net.minecraft.item.ItemStack |
getStackInSlot(int slot) |
net.minecraft.item.ItemStack |
getStackInSlotOnClosing(int slot) |
boolean |
hasCustomInventoryName() |
boolean |
hasWork()
Check if the Tile Entity is currently doing any work.
|
boolean |
isItemValidForSlot(int slot,
net.minecraft.item.ItemStack stack) |
boolean |
isUseableByPlayer(net.minecraft.entity.player.EntityPlayer player) |
void |
markDirty() |
void |
openInventory() |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound data) |
void |
setInventorySlotContents(int slot,
net.minecraft.item.ItemStack stack) |
void |
updateEntity() |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound data) |
addGuiWatcher, 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, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getRenderBoundingBox, getWorldObj, hasWorldObj, isInvalid, onChunkUnload, onDataPacket, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfoclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetEnergyStored, getMaxEnergyStored, receiveEnergypublic static final int SLOT_RESULT
public static final int CRAFT_TIME
public static final int UPDATE_TIME
public int progress
public TileAutoWorkbench.LocalInventoryCrafting craftMatrix
public boolean hasWork()
IHasWorkpublic boolean canConnectRedstoneEngine(net.minecraftforge.common.util.ForgeDirection side)
IRedstoneEngineReceivercanConnectRedstoneEngine in interface IRedstoneEngineReceiverpublic boolean canConnectEnergy(net.minecraftforge.common.util.ForgeDirection side)
IEnergyConnectioncanConnectEnergy in interface IEnergyConnectioncanConnectEnergy in class TileBuildCraftpublic java.lang.ref.WeakReference<net.minecraft.entity.player.EntityPlayer> getInternalPlayer()
public void markDirty()
markDirty in interface net.minecraft.inventory.IInventorymarkDirty in class net.minecraft.tileentity.TileEntitypublic int getSizeInventory()
getSizeInventory in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlot(int slot)
getStackInSlot in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack decrStackSize(int slot,
int count)
decrStackSize in interface net.minecraft.inventory.IInventorypublic void setInventorySlotContents(int slot,
net.minecraft.item.ItemStack stack)
setInventorySlotContents in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlotOnClosing(int slot)
getStackInSlotOnClosing in interface net.minecraft.inventory.IInventorypublic java.lang.String getInventoryName()
getInventoryName 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 readFromNBT(net.minecraft.nbt.NBTTagCompound data)
readFromNBT in class TileBuildCraftpublic void writeToNBT(net.minecraft.nbt.NBTTagCompound data)
writeToNBT in class TileBuildCraftpublic boolean canUpdate()
canUpdate in class net.minecraft.tileentity.TileEntitypublic void updateEntity()
updateEntity in class TileBuildCraftpublic int getProgressScaled(int i)
public void openInventory()
openInventory in interface net.minecraft.inventory.IInventorypublic void closeInventory()
closeInventory in interface net.minecraft.inventory.IInventorypublic boolean isItemValidForSlot(int slot,
net.minecraft.item.ItemStack stack)
isItemValidForSlot in interface net.minecraft.inventory.IInventorypublic int[] getAccessibleSlotsFromSide(int var1)
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.ISidedInventorypublic boolean hasCustomInventoryName()
hasCustomInventoryName in interface net.minecraft.inventory.IInventory