public class TileRequester extends TileBuildCraft implements net.minecraft.inventory.IInventory, IRequestProvider, ICommandReceiver
| Modifier and Type | Field and Description |
|---|---|
static int |
NB_ITEMS |
cache, guiWatchers, mode| Constructor and Description |
|---|
TileRequester() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeInventory() |
net.minecraft.item.ItemStack |
decrStackSize(int slotId,
int count) |
java.lang.String |
getInventoryName() |
int |
getInventoryStackLimit() |
net.minecraft.item.ItemStack |
getRequest(int i)
Return a stack with the request in the slot.
|
int |
getRequestsCount()
Return the total number of request slots available from this provider.
|
net.minecraft.item.ItemStack |
getRequestTemplate(int index) |
int |
getSizeInventory() |
net.minecraft.item.ItemStack |
getStackInSlot(int slotId) |
net.minecraft.item.ItemStack |
getStackInSlotOnClosing(int slotId) |
boolean |
hasCustomInventoryName() |
boolean |
isFulfilled(int i) |
boolean |
isItemValidForSlot(int i,
net.minecraft.item.ItemStack itemStack) |
boolean |
isUseableByPlayer(net.minecraft.entity.player.EntityPlayer entityPlayer) |
net.minecraft.item.ItemStack |
offerItem(int i,
net.minecraft.item.ItemStack stack)
Fulfill the request in slot with the stack given and return any excess.
|
void |
openInventory() |
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 |
setInventorySlotContents(int slotId,
net.minecraft.item.ItemStack itemStack) |
void |
setRequest(int index,
net.minecraft.item.ItemStack stack) |
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, updateEntity, validate, writeDataaddMapping, canUpdate, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getRenderBoundingBox, getWorldObj, hasWorldObj, isInvalid, markDirty, onChunkUnload, onDataPacket, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfopublic static final int NB_ITEMS
public void setRequest(int index,
net.minecraft.item.ItemStack stack)
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 net.minecraft.item.ItemStack getRequestTemplate(int index)
public int getSizeInventory()
getSizeInventory in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlot(int slotId)
getStackInSlot in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack decrStackSize(int slotId,
int count)
decrStackSize in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlotOnClosing(int slotId)
getStackInSlotOnClosing in interface net.minecraft.inventory.IInventorypublic void setInventorySlotContents(int slotId,
net.minecraft.item.ItemStack itemStack)
setInventorySlotContents in interface net.minecraft.inventory.IInventorypublic java.lang.String getInventoryName()
getInventoryName in interface net.minecraft.inventory.IInventorypublic boolean hasCustomInventoryName()
hasCustomInventoryName in interface net.minecraft.inventory.IInventorypublic int getInventoryStackLimit()
getInventoryStackLimit in interface net.minecraft.inventory.IInventorypublic boolean isUseableByPlayer(net.minecraft.entity.player.EntityPlayer entityPlayer)
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 boolean isItemValidForSlot(int i,
net.minecraft.item.ItemStack itemStack)
isItemValidForSlot 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 boolean isFulfilled(int i)
public int getRequestsCount()
IRequestProvidergetRequestsCount in interface IRequestProviderpublic net.minecraft.item.ItemStack getRequest(int i)
IRequestProvidergetRequest in interface IRequestProviderpublic net.minecraft.item.ItemStack offerItem(int i,
net.minecraft.item.ItemStack stack)
IRequestProviderofferItem in interface IRequestProvider