YATS/Forge Documentation
|
Public Attributes | |
ItemStack[] | inventory = new ItemStack[40] |
Colours[] | rowColours = {NONE,NONE,NONE,NONE,NONE} |
boolean | isBusy |
Public Attributes inherited from net.minecraft.tileentity.TileEntity | |
World | worldObj |
int | xCoord |
int | yCoord |
int | zCoord |
int | blockMetadata = -1 |
Block | blockType |
Public Attributes inherited from YATS.api.I6WayWrenchable | |
ForgeDirection | currentfacing = ForgeDirection.UNKNOWN |
Additional Inherited Members | |
Static Public Member Functions inherited from net.minecraft.tileentity.TileEntity | |
static void | addMapping (Class par0Class, String par1Str) |
static TileEntity | createAndLoadEntity (NBTTagCompound par0NBTTagCompound) |
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 YATS.tile.TileRoutingMarshaller.AcceptCapsule | ( | ICapsule | capsule) |
Provides routines to be performed when the tile is offered and can accept a capsule.
capsule | The capsule, implementing ICapsule, to be accepted into the tile's contents. |
Implements YATS.api.ITubeConnectable.
boolean YATS.tile.TileRoutingMarshaller.AcceptsItemsOnSide | ( | ForgeDirection | side) |
Tests whether the tile accepts incoming capsules on the given side.
side | The side which is to be tested for acceptance of capsules, according to tile behavior |
Implements YATS.api.ITubeConnectable.
boolean YATS.tile.TileRoutingMarshaller.CanAccept | ( | ICapsule | capsule) |
Tests whether the tile will accept a capsule (ex. by colour - it's like racism for tubes).
capsule | The capsule to be tested according to the conditions of the tile. |
Implements YATS.api.ITubeConnectable.
Boolean YATS.tile.TileRoutingMarshaller.CanRoute | ( | ) |
Tests whether the tile can route a capsule.
Implements YATS.api.ITubeConnectable.
void YATS.tile.TileRoutingMarshaller.closeChest | ( | ) |
Implements net.minecraft.inventory.IInventory.
ItemStack YATS.tile.TileRoutingMarshaller.decrStackSize | ( | int | i, |
int | j | ||
) |
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.
int YATS.tile.TileRoutingMarshaller.GetAdditionalPriority | ( | ) |
Adds additional priority to a tube route.
Implements YATS.api.ITubeConnectable.
Colours YATS.tile.TileRoutingMarshaller.GetColour | ( | ) |
This is the get accessor for the tile's colour.
Implements YATS.api.ITubeConnectable.
ForgeDirection YATS.tile.TileRoutingMarshaller.GetCurrentFacing | ( | ) |
This is the get accessor for the block's ForgeDirection.
Implements YATS.api.I6WayWrenchable.
int YATS.tile.TileRoutingMarshaller.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 YATS.tile.TileRoutingMarshaller.getInvName | ( | ) |
Returns the name of the inventory.
Implements net.minecraft.inventory.IInventory.
int YATS.tile.TileRoutingMarshaller.GetPressure | ( | ) |
This is the get accessor for the pressure within the tile.
Implements YATS.api.ITubeConnectable.
int YATS.tile.TileRoutingMarshaller.getSizeInventory | ( | ) |
Returns the number of slots in the inventory.
Implements net.minecraft.inventory.IInventory.
ItemStack YATS.tile.TileRoutingMarshaller.getStackInSlot | ( | int | i) |
Returns the stack in slot i
Implements net.minecraft.inventory.IInventory.
ItemStack YATS.tile.TileRoutingMarshaller.getStackInSlotOnClosing | ( | int | i) |
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.
boolean YATS.tile.TileRoutingMarshaller.IsConnectableOnSide | ( | ForgeDirection | side) |
Tests whether a given side of the tile can accept connection to another connectable
side | A ForgeDirection side of the tile to test for connectability. |
Implements YATS.api.ITubeConnectable.
boolean YATS.tile.TileRoutingMarshaller.IsConnectedOnSide | ( | ForgeDirection | side) |
Tests whether the tile is connected to another connectable tile on the given side.
side | The side which is to be tested for connection to another connectable tile. |
Implements YATS.api.ITubeConnectable.
boolean YATS.tile.TileRoutingMarshaller.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 YATS.tile.TileRoutingMarshaller.isStackValidForSlot | ( | int | i, |
ItemStack | itemstack | ||
) |
Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.
Implements net.minecraft.inventory.IInventory.
boolean YATS.tile.TileRoutingMarshaller.isUseableByPlayer | ( | EntityPlayer | entityplayer) |
Do not make give this method the name canInteractWith because it clashes with Container
Implements net.minecraft.inventory.IInventory.
void YATS.tile.TileRoutingMarshaller.openChest | ( | ) |
Implements net.minecraft.inventory.IInventory.
void YATS.tile.TileRoutingMarshaller.readFromNBT | ( | NBTTagCompound | nbt) |
void YATS.tile.TileRoutingMarshaller.RotateTo | ( | ForgeDirection | direction) |
This is the set accessor for the block's ForgeDirection.
direction | The ForgeDirection to rotate to. |
Implements YATS.api.I6WayWrenchable.
void YATS.tile.TileRoutingMarshaller.SetColour | ( | Colours | colour) |
This is the set accessor for the tile's colour.
colour | The Colour with which the tile is to be associated. |
Implements YATS.api.ITubeConnectable.
void YATS.tile.TileRoutingMarshaller.SetConnectionOnSide | ( | ForgeDirection | side, |
boolean | connected | ||
) |
Sets the connection state of a side of the tile.
side | A ForgeDirection side of the tile to be updated. |
connected | A boolean; true if the side is connected, false if disconnected. |
Implements YATS.api.ITubeConnectable.
void YATS.tile.TileRoutingMarshaller.setInventorySlotContents | ( | int | i, |
ItemStack | itemstack | ||
) |
Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).
Implements net.minecraft.inventory.IInventory.
void YATS.tile.TileRoutingMarshaller.SetPressure | ( | int | pressure) |
This is the set accessor for the pressure within the tile.
pressure | An integer value for the tube pressure within the tile. |
Implements YATS.api.ITubeConnectable.
void YATS.tile.TileRoutingMarshaller.updateEntity | ( | ) |
void YATS.tile.TileRoutingMarshaller.writeToNBT | ( | NBTTagCompound | nbt) |
boolean YATS.tile.TileRoutingMarshaller.isBusy |
Colours [] YATS.tile.TileRoutingMarshaller.rowColours = {NONE,NONE,NONE,NONE,NONE} |