YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.tileentity.TileEntityHopper Class Reference
Inheritance diagram for net.minecraft.tileentity.TileEntityHopper:
net.minecraft.tileentity.TileEntity net.minecraft.tileentity.Hopper net.minecraft.inventory.IInventory

Public Member Functions

void readFromNBT (NBTTagCompound par1NBTTagCompound)
 
void writeToNBT (NBTTagCompound par1NBTTagCompound)
 
void onInventoryChanged ()
 
int getSizeInventory ()
 
ItemStack getStackInSlot (int par1)
 
ItemStack decrStackSize (int par1, int par2)
 
ItemStack getStackInSlotOnClosing (int par1)
 
void setInventorySlotContents (int par1, ItemStack par2ItemStack)
 
String getInvName ()
 
boolean isInvNameLocalized ()
 
void setInventoryName (String par1Str)
 
int getInventoryStackLimit ()
 
boolean isUseableByPlayer (EntityPlayer par1EntityPlayer)
 
void openChest ()
 
void closeChest ()
 
boolean isStackValidForSlot (int par1, ItemStack par2ItemStack)
 
void updateEntity ()
 
boolean func_98045_j ()
 
double getXPos ()
 
double getYPos ()
 
double getZPos ()
 
void setTransferCooldown (int par1)
 
boolean isCoolingDown ()
 
- Public Member Functions inherited from net.minecraft.tileentity.TileEntity
World getWorldObj ()
 
void setWorldObj (World par1World)
 
boolean func_70309_m ()
 
void readFromNBT (NBTTagCompound par1NBTTagCompound)
 
void writeToNBT (NBTTagCompound par1NBTTagCompound)
 
void updateEntity ()
 
int getBlockMetadata ()
 
void onInventoryChanged ()
 
double getDistanceFrom (double par1, double par3, double par5)
 
double getMaxRenderDistanceSquared ()
 
Block getBlockType ()
 
Packet getDescriptionPacket ()
 
boolean isInvalid ()
 
void invalidate ()
 
void validate ()
 
boolean receiveClientEvent (int par1, int par2)
 
void updateContainingBlockInfo ()
 
void func_85027_a (CrashReportCategory par1CrashReportCategory)
 
boolean canUpdate ()
 
void onDataPacket (INetworkManager net, Packet132TileEntityData pkt)
 
void onChunkUnload ()
 
boolean shouldRefresh (int oldID, int newID, int oldMeta, int newMeta, World world, int x, int y, int z)
 
boolean shouldRenderInPass (int pass)
 
AxisAlignedBB getRenderBoundingBox ()
 
- Public Member Functions inherited from net.minecraft.tileentity.Hopper
World getWorldObj ()
 

Static Public Member Functions

static boolean suckItemsIntoHopper (Hopper par0Hopper)
 
static boolean func_96114_a (IInventory par0IInventory, EntityItem par1EntityItem)
 
static ItemStack insertStack (IInventory par1IInventory, ItemStack par2ItemStack, int par3)
 
static IInventory getInventoryAboveHopper (Hopper par0Hopper)
 
static EntityItem func_96119_a (World par0World, double par1, double par3, double par5)
 
static IInventory getInventoryAtLocation (World par0World, double par1, double par3, double par5)
 
- Static Public Member Functions inherited from net.minecraft.tileentity.TileEntity
static void addMapping (Class par0Class, String par1Str)
 
static TileEntity createAndLoadEntity (NBTTagCompound par0NBTTagCompound)
 

Additional Inherited Members

- Public Attributes inherited from net.minecraft.tileentity.TileEntity
World worldObj
 
int xCoord
 
int yCoord
 
int zCoord
 
int blockMetadata = -1
 
Block blockType
 
- Static Public Attributes inherited from net.minecraft.tileentity.TileEntity
static final AxisAlignedBB INFINITE_EXTENT_AABB = AxisAlignedBB.getBoundingBox(Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)
 
- Protected Attributes inherited from net.minecraft.tileentity.TileEntity
boolean tileEntityInvalid
 

Member Function Documentation

void net.minecraft.tileentity.TileEntityHopper.closeChest ( )
ItemStack net.minecraft.tileentity.TileEntityHopper.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.

Implements net.minecraft.inventory.IInventory.

static boolean net.minecraft.tileentity.TileEntityHopper.func_96114_a ( IInventory  par0IInventory,
EntityItem  par1EntityItem 
)
static
static EntityItem net.minecraft.tileentity.TileEntityHopper.func_96119_a ( World  par0World,
double  par1,
double  par3,
double  par5 
)
static
boolean net.minecraft.tileentity.TileEntityHopper.func_98045_j ( )
static IInventory net.minecraft.tileentity.TileEntityHopper.getInventoryAboveHopper ( Hopper  par0Hopper)
static

Looks for anything, that can hold items (like chests, furnaces, etc.) one block above the given hopper.

static IInventory net.minecraft.tileentity.TileEntityHopper.getInventoryAtLocation ( World  par0World,
double  par1,
double  par3,
double  par5 
)
static

Gets an inventory at the given location to extract items into or take items from. Can find either a tile entity or regular entity implementing IInventory.

int net.minecraft.tileentity.TileEntityHopper.getInventoryStackLimit ( )

Returns the maximum stack size for a inventory slot. Seems to always be 64, possibly will be extended. Isn't this more of a set than a get?

Implements net.minecraft.inventory.IInventory.

String net.minecraft.tileentity.TileEntityHopper.getInvName ( )

Returns the name of the inventory.

Implements net.minecraft.inventory.IInventory.

int net.minecraft.tileentity.TileEntityHopper.getSizeInventory ( )

Returns the number of slots in the inventory.

Implements net.minecraft.inventory.IInventory.

ItemStack net.minecraft.tileentity.TileEntityHopper.getStackInSlot ( int  par1)

Returns the stack in slot i

Implements net.minecraft.inventory.IInventory.

ItemStack net.minecraft.tileentity.TileEntityHopper.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.

Implements net.minecraft.inventory.IInventory.

double net.minecraft.tileentity.TileEntityHopper.getXPos ( )

Gets the world X position for this hopper entity.

Implements net.minecraft.tileentity.Hopper.

double net.minecraft.tileentity.TileEntityHopper.getYPos ( )

Gets the world Y position for this hopper entity.

Implements net.minecraft.tileentity.Hopper.

double net.minecraft.tileentity.TileEntityHopper.getZPos ( )

Gets the world Z position for this hopper entity.

Implements net.minecraft.tileentity.Hopper.

static ItemStack net.minecraft.tileentity.TileEntityHopper.insertStack ( IInventory  par1IInventory,
ItemStack  par2ItemStack,
int  par3 
)
static

Inserts a stack into an inventory. Args: Inventory, stack, side. Returns leftover items.

boolean net.minecraft.tileentity.TileEntityHopper.isCoolingDown ( )
boolean net.minecraft.tileentity.TileEntityHopper.isInvNameLocalized ( )

If this returns false, the inventory name will be used as an unlocalized name, and translated into the player's language. Otherwise it will be used directly.

Implements net.minecraft.inventory.IInventory.

boolean net.minecraft.tileentity.TileEntityHopper.isStackValidForSlot ( int  par1,
ItemStack  par2ItemStack 
)

Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.

Implements net.minecraft.inventory.IInventory.

boolean net.minecraft.tileentity.TileEntityHopper.isUseableByPlayer ( EntityPlayer  par1EntityPlayer)

Do not make give this method the name canInteractWith because it clashes with Container

Implements net.minecraft.inventory.IInventory.

void net.minecraft.tileentity.TileEntityHopper.onInventoryChanged ( )

Called when an the contents of an Inventory change, usually

Implements net.minecraft.inventory.IInventory.

void net.minecraft.tileentity.TileEntityHopper.openChest ( )
void net.minecraft.tileentity.TileEntityHopper.readFromNBT ( NBTTagCompound  par1NBTTagCompound)

Reads a tile entity from NBT.

void net.minecraft.tileentity.TileEntityHopper.setInventoryName ( String  par1Str)
void net.minecraft.tileentity.TileEntityHopper.setInventorySlotContents ( int  par1,
ItemStack  par2ItemStack 
)

Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).

Implements net.minecraft.inventory.IInventory.

void net.minecraft.tileentity.TileEntityHopper.setTransferCooldown ( int  par1)
static boolean net.minecraft.tileentity.TileEntityHopper.suckItemsIntoHopper ( Hopper  par0Hopper)
static

Sucks one item into the given hopper from an inventory or EntityItem above it.

void net.minecraft.tileentity.TileEntityHopper.updateEntity ( )

Allows the entity to update its state. Overridden in most subclasses, e.g. the mob spawner uses this to count ticks and creates a new spawn inside its implementation.

void net.minecraft.tileentity.TileEntityHopper.writeToNBT ( NBTTagCompound  par1NBTTagCompound)

Writes a tile entity to NBT.


The documentation for this class was generated from the following file: