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

Public Member Functions

 TileTube ()
 
Packet getDescriptionPacket ()
 
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 onDataPacket (INetworkManager manager, Packet132TileEntityData packet)
 
boolean canUpdate ()
 
void updateEntity ()
 
void writeToNBT (NBTTagCompound nbt)
 
void readFromNBT (NBTTagCompound nbt)
 
ArrayList< ForgeDirectionGetConnectedSides ()
 
- 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 Attributes

int pressure = 5
 
ArrayList< ICapsulecontents
 
boolean isConnectableOnSide [] = {true,true,true,true,true,true}
 
boolean isConnectedOnSide [] = new boolean[6]
 
Colours colour = Colours.NONE
 
- Public Attributes inherited from net.minecraft.tileentity.TileEntity
World worldObj
 
int xCoord
 
int yCoord
 
int zCoord
 
int blockMetadata = -1
 
Block blockType
 

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
 

Constructor & Destructor Documentation

YATS.tile.TileTube.TileTube ( )

Member Function Documentation

void YATS.tile.TileTube.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.TileTube.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.TileTube.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.TileTube.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.

boolean YATS.tile.TileTube.canUpdate ( )
int YATS.tile.TileTube.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.TileTube.GetColour ( )

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

Returns
The Colour associated with the tile.

Implements YATS.api.ITubeConnectable.

ArrayList<ForgeDirection> YATS.tile.TileTube.GetConnectedSides ( )
Packet YATS.tile.TileTube.getDescriptionPacket ( )
int YATS.tile.TileTube.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.

boolean YATS.tile.TileTube.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.TileTube.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.

void YATS.tile.TileTube.onDataPacket ( INetworkManager  manager,
Packet132TileEntityData  packet 
)
void YATS.tile.TileTube.readFromNBT ( NBTTagCompound  nbt)
void YATS.tile.TileTube.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.TileTube.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.TileTube.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.TileTube.updateEntity ( )
void YATS.tile.TileTube.writeToNBT ( NBTTagCompound  nbt)

Member Data Documentation

Colours YATS.tile.TileTube.colour = Colours.NONE
ArrayList<ICapsule> YATS.tile.TileTube.contents
boolean YATS.tile.TileTube.isConnectableOnSide[] = {true,true,true,true,true,true}
boolean YATS.tile.TileTube.isConnectedOnSide[] = new boolean[6]
int YATS.tile.TileTube.pressure = 5

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