YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
YATS.tile.TileRoutingMarshaller Class Reference
Inheritance diagram for YATS.tile.TileRoutingMarshaller:
net.minecraft.tileentity.TileEntity net.minecraft.inventory.IInventory YATS.api.I6WayWrenchable YATS.api.ITubeConnectable

Public Member Functions

void RotateTo (ForgeDirection direction)
 
ForgeDirection GetCurrentFacing ()
 
int getSizeInventory ()
 
ItemStack getStackInSlot (int i)
 
ItemStack decrStackSize (int i, int j)
 
ItemStack getStackInSlotOnClosing (int i)
 
void setInventorySlotContents (int i, ItemStack itemstack)
 
String getInvName ()
 
boolean isInvNameLocalized ()
 
int getInventoryStackLimit ()
 
boolean isUseableByPlayer (EntityPlayer entityplayer)
 
void openChest ()
 
void closeChest ()
 
boolean isStackValidForSlot (int i, ItemStack itemstack)
 
boolean AcceptsItemsOnSide (ForgeDirection side)
 
boolean IsConnectedOnSide (ForgeDirection side)
 
boolean CanAccept (ICapsule capsule)
 
Boolean CanRoute ()
 
int GetPressure ()
 
void SetPressure (int pressure)
 
Colours GetColour ()
 
void SetColour (Colours colour)
 
int GetAdditionalPriority ()
 
void AcceptCapsule (ICapsule capsule)
 
void SetConnectionOnSide (ForgeDirection side, boolean connected)
 
boolean IsConnectableOnSide (ForgeDirection side)
 
void writeToNBT (NBTTagCompound nbt)
 
void readFromNBT (NBTTagCompound nbt)
 
void updateEntity ()
 
- 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.inventory.IInventory
void onInventoryChanged ()
 

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
 

Member Function Documentation

void YATS.tile.TileRoutingMarshaller.AcceptCapsule ( ICapsule  capsule)

Provides routines to be performed when the tile is offered and can accept a capsule.

Parameters
capsuleThe 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.

Parameters
sideThe side which is to be tested for acceptance of capsules, according to tile behavior
Returns
True if the tile accepts items on the given side, otherwise false.

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).

Parameters
capsuleThe capsule to be tested according to the conditions of the tile.
Returns
True if the tile will accept the capsule, otherwise false.

Implements YATS.api.ITubeConnectable.

Boolean YATS.tile.TileRoutingMarshaller.CanRoute ( )

Tests whether the tile can route a capsule.

Returns
True if the tile can be utilized for routing a capsule, otherwise false.

Implements YATS.api.ITubeConnectable.

void YATS.tile.TileRoutingMarshaller.closeChest ( )
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.

Returns
An integer representing the additional priority of the tile.

Implements YATS.api.ITubeConnectable.

Colours YATS.tile.TileRoutingMarshaller.GetColour ( )

This is the get accessor for the tile's colour.

Returns
The Colour associated with the tile.

Implements YATS.api.ITubeConnectable.

ForgeDirection YATS.tile.TileRoutingMarshaller.GetCurrentFacing ( )

This is the get accessor for the block's ForgeDirection.

Returns
The ForgeDirection the block is currently facing.

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.

Returns
An integer value for the tube 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

Parameters
sideA ForgeDirection side of the tile to test for connectability.
Returns
True if the side is connectable, false if unconnectable.

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.

Parameters
sideThe side which is to be tested for connection to another connectable tile.
Returns
True if the tile is connected to another connectable tile on the given side, otherwise false.

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 ( )
void YATS.tile.TileRoutingMarshaller.readFromNBT ( NBTTagCompound  nbt)
void YATS.tile.TileRoutingMarshaller.RotateTo ( ForgeDirection  direction)

This is the set accessor for the block's ForgeDirection.

Parameters
directionThe 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.

Parameters
colourThe 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.

Parameters
sideA ForgeDirection side of the tile to be updated.
connectedA 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.

Parameters
pressureAn 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)

Member Data Documentation

ItemStack [] YATS.tile.TileRoutingMarshaller.inventory = new ItemStack[40]
boolean YATS.tile.TileRoutingMarshaller.isBusy
Colours [] YATS.tile.TileRoutingMarshaller.rowColours = {NONE,NONE,NONE,NONE,NONE}

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