YATS/Forge Documentation
|
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 |
void net.minecraft.tileentity.TileEntityHopper.closeChest | ( | ) |
Implements net.minecraft.inventory.IInventory.
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 |
|
static |
boolean net.minecraft.tileentity.TileEntityHopper.func_98045_j | ( | ) |
|
static |
Looks for anything, that can hold items (like chests, furnaces, etc.) one block above the given hopper.
|
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 |
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 | ( | ) |
Implements net.minecraft.inventory.IInventory.
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 |
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.