Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.Tile Class Reference

Public Member Functions

 Tile ()
 
 Tile (Tile copy)
 
object Clone ()
 
void ClearEverything ()
 
void ClearTile ()
 
void CopyFrom (Tile from)
 
bool isTheSameAs (Tile compTile)
 
int blockType ()
 
void liquidType (int liquidType)
 
byte liquidType ()
 
bool nactive ()
 
void ResetToType (ushort type)
 
Color actColor (Color oldColor)
 
void actColor (ref Vector3 oldColor)
 
bool topSlope ()
 
bool bottomSlope ()
 
bool leftSlope ()
 
bool rightSlope ()
 
bool HasSameSlope (Tile tile)
 
byte wallColor ()
 
void wallColor (byte wallColor)
 
bool lava ()
 
void lava (bool lava)
 
bool honey ()
 
void honey (bool honey)
 
bool shimmer ()
 
void shimmer (bool shimmer)
 
bool wire4 ()
 
void wire4 (bool wire4)
 
int wallFrameX ()
 
void wallFrameX (int wallFrameX)
 
byte frameNumber ()
 
void frameNumber (byte frameNumber)
 
byte wallFrameNumber ()
 
void wallFrameNumber (byte wallFrameNumber)
 
int wallFrameY ()
 
void wallFrameY (int wallFrameY)
 
bool checkingLiquid ()
 
void checkingLiquid (bool checkingLiquid)
 
bool skipLiquid ()
 
void skipLiquid (bool skipLiquid)
 
bool invisibleBlock ()
 
void invisibleBlock (bool invisibleBlock)
 
bool invisibleWall ()
 
void invisibleWall (bool invisibleWall)
 
bool fullbrightBlock ()
 
void fullbrightBlock (bool fullbrightBlock)
 
byte color ()
 
void color (byte color)
 
bool active ()
 
void active (bool active)
 
bool inActive ()
 
void inActive (bool inActive)
 
bool wire ()
 
void wire (bool wire)
 
bool wire2 ()
 
void wire2 (bool wire2)
 
bool wire3 ()
 
void wire3 (bool wire3)
 
bool halfBrick ()
 
void halfBrick (bool halfBrick)
 
bool actuator ()
 
void actuator (bool actuator)
 
byte slope ()
 
void slope (byte slope)
 
bool fullbrightWall ()
 
void fullbrightWall (bool fullbrightWall)
 
void Clear (TileDataType types)
 
void CopyPaintAndCoating (Tile other)
 
TileColorCache BlockColorAndCoating ()
 
TileColorCache WallColorAndCoating ()
 
void UseBlockColors (TileColorCache cache)
 
void UseWallColors (TileColorCache cache)
 
void ClearBlockPaintAndCoating ()
 
void ClearWallPaintAndCoating ()
 
override string ToString ()
 

Static Public Member Functions

static void SmoothSlope (int x, int y, bool applyToNeighbors=true, bool sync=false)
 

Public Attributes

ushort type
 
ushort wall
 
byte liquid
 
ushort sTileHeader
 
byte bTileHeader
 
byte bTileHeader2
 
byte bTileHeader3
 
short frameX
 
short frameY
 

Static Public Attributes

const int Type_Solid = 0
 
const int Type_Halfbrick = 1
 
const int Type_SlopeDownRight = 2
 
const int Type_SlopeDownLeft = 3
 
const int Type_SlopeUpRight = 4
 
const int Type_SlopeUpLeft = 5
 
const int Liquid_Water = 0
 
const int Liquid_Lava = 1
 
const int Liquid_Honey = 2
 
const int Liquid_Shimmer = 3
 

Package Functions

void ClearMetadata ()
 

Properties

int collisionType [get]
 

Static Private Attributes

const int Bit0 = 1
 
const int Bit1 = 2
 
const int Bit2 = 4
 
const int Bit3 = 8
 
const int Bit4 = 16
 
const int Bit5 = 32
 
const int Bit6 = 64
 
const int Bit7 = 128
 
const ushort Bit15 = 32768
 
const int NeitherLavaOrHoney = 159
 
const int EitherLavaOrHoney = 96
 

Detailed Description

Definition at line 6 of file Tile.cs.


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