public class TileEntityHopper extends TileEntity implements Hopper
blockMetadata, blockType, INFINITE_EXTENT_AABB, worldObj, xCoord, yCoord, zCoord
Constructor and Description |
---|
TileEntityHopper() |
Modifier and Type | Method and Description |
---|---|
void |
closeChest() |
ItemStack |
decrStackSize(int par1,
int par2)
Removes from an inventory slot (first arg) up to a specified number (second arg) of items and returns them in a
new stack.
|
boolean |
func_94041_b(int par1,
ItemStack par2ItemStack) |
boolean |
func_94042_c() |
static int |
func_94115_a(IInventory par1IInventory,
int par2) |
static ItemStack |
func_94117_a(IInventory par1IInventory,
ItemStack par2ItemStack,
int par3) |
double |
func_96107_aA() |
double |
func_96108_aC() |
double |
func_96109_aB() |
static boolean |
func_96114_a(IInventory par0IInventory,
EntityItem par1EntityItem) |
void |
func_96115_a(String par1Str) |
static boolean |
func_96116_a(Hopper par0Hopper) |
static IInventory |
func_96117_b(World par0World,
double par1,
double par3,
double par5) |
static IInventory |
func_96118_b(Hopper par0Hopper) |
static EntityItem |
func_96119_a(World par0World,
double par1,
double par3,
double par5) |
boolean |
func_98045_j() |
void |
func_98046_c(int par1) |
boolean |
func_98047_l() |
int |
getInventoryStackLimit()
Returns the maximum stack size for a inventory slot.
|
String |
getInvName()
Returns the name of the inventory.
|
int |
getSizeInventory()
Returns the number of slots in the inventory.
|
ItemStack |
getStackInSlot(int par1)
Returns the stack in slot i
|
ItemStack |
getStackInSlotOnClosing(int par1)
When some containers are closed they call this on each slot, then drop whatever it returns as an EntityItem -
like when you close a workbench GUI.
|
boolean |
isUseableByPlayer(EntityPlayer par1EntityPlayer)
Do not make give this method the name canInteractWith because it clashes with Container
|
void |
onInventoryChanged()
Called when an the contents of an Inventory change, usually
|
void |
openChest() |
void |
readFromNBT(NBTTagCompound par1NBTTagCompound)
Reads a tile entity from NBT.
|
void |
setInventorySlotContents(int par1,
ItemStack par2ItemStack)
Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).
|
void |
updateEntity()
Allows the entity to update its state.
|
void |
writeToNBT(NBTTagCompound par1NBTTagCompound)
Writes a tile entity to NBT.
|
addMapping, canUpdate, createAndLoadEntity, func_70309_m, func_82115_m, func_85027_a, getBlockMetadata, getBlockType, getDescriptionPacket, getDistanceFrom, getRenderBoundingBox, getWorldObj, invalidate, isInvalid, onChunkUnload, onDataPacket, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validate
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWorldObj
public TileEntityHopper()
public void readFromNBT(NBTTagCompound par1NBTTagCompound)
readFromNBT
in class TileEntity
public void writeToNBT(NBTTagCompound par1NBTTagCompound)
writeToNBT
in class TileEntity
public void onInventoryChanged()
onInventoryChanged
in interface IInventory
onInventoryChanged
in class TileEntity
public int getSizeInventory()
getSizeInventory
in interface IInventory
public ItemStack getStackInSlot(int par1)
getStackInSlot
in interface IInventory
public ItemStack decrStackSize(int par1, int par2)
decrStackSize
in interface IInventory
public ItemStack getStackInSlotOnClosing(int par1)
getStackInSlotOnClosing
in interface IInventory
public void setInventorySlotContents(int par1, ItemStack par2ItemStack)
setInventorySlotContents
in interface IInventory
public String getInvName()
getInvName
in interface IInventory
public boolean func_94042_c()
func_94042_c
in interface IInventory
public void func_96115_a(String par1Str)
public int getInventoryStackLimit()
getInventoryStackLimit
in interface IInventory
public boolean isUseableByPlayer(EntityPlayer par1EntityPlayer)
isUseableByPlayer
in interface IInventory
public void openChest()
openChest
in interface IInventory
public void closeChest()
closeChest
in interface IInventory
public boolean func_94041_b(int par1, ItemStack par2ItemStack)
func_94041_b
in interface IInventory
public void updateEntity()
updateEntity
in class TileEntity
public boolean func_98045_j()
public static boolean func_96116_a(Hopper par0Hopper)
public static boolean func_96114_a(IInventory par0IInventory, EntityItem par1EntityItem)
public static int func_94115_a(IInventory par1IInventory, int par2)
public static ItemStack func_94117_a(IInventory par1IInventory, ItemStack par2ItemStack, int par3)
public static IInventory func_96118_b(Hopper par0Hopper)
public static EntityItem func_96119_a(World par0World, double par1, double par3, double par5)
public static IInventory func_96117_b(World par0World, double par1, double par3, double par5)
public double func_96107_aA()
func_96107_aA
in interface Hopper
public double func_96109_aB()
func_96109_aB
in interface Hopper
public double func_96108_aC()
func_96108_aC
in interface Hopper
public void func_98046_c(int par1)
public boolean func_98047_l()