tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.Tile Struct Reference

Public Member Functions

Color actColor (Color oldColor)
 
void actColor (ref Vector3 oldColor)
 
void Clear (TileDataType types)
 
void ClearEverything ()
 
void ClearTile ()
 
object Clone ()
 
void CopyFrom (Tile from)
 
unsafe ref T Get< T > ()
 
override int GetHashCode ()
 
void ResetToType (ushort type)
 
override string ToString ()
 

Static Public Member Functions

static bool operator!= (Tile tile, ArgumentException justSoYouCanCompareWithNull)
 
static bool operator!= (Tile tile, Tile tile2)
 
static bool operator== (Tile tile, ArgumentException justSoYouCanCompareWithNull)
 
static bool operator== (Tile tile, Tile tile2)
 
static void SmoothSlope (int x, int y, bool applyToNeighbors=true, bool sync=false)
 

Properties

BlockType BlockType [get, set]
 
bool BlueWire [get, set]
 
bool BottomSlope [get]
 
bool CheckingLiquid [get, set]
 
bool GreenWire [get, set]
 
bool HasActuator [get, set]
 
bool HasTile [get, set]
 
bool HasUnactuatedTile [get]
 
bool IsActuated [get, set]
 
bool IsHalfBlock [get, set]
 
bool LeftSlope [get]
 
ref byte LiquidAmount [get]
 
int LiquidType [get, set]
 
bool RedWire [get, set]
 
bool RightSlope [get]
 
bool SkipLiquid [get, set]
 
SlopeType Slope [get, set]
 
byte TileColor [get, set]
 
int TileFrameNumber [get, set]
 
ref short TileFrameX [get]
 
ref short TileFrameY [get]
 
ref ushort TileType [get]
 
bool TopSlope [get]
 
byte WallColor [get, set]
 
int WallFrameNumber [get, set]
 
int WallFrameX [get, set]
 
int WallFrameY [get, set]
 
ref ushort WallType [get]
 
bool YellowWire [get, set]
 

Member Function Documentation

◆ Get< T >()

unsafe ref T Terraria.Tile.Get< T > ( )
Type Constraints
T :unmanaged 
T :ITileData 
T :ref 
T :TileData<T> 
T :ptr 
T :TileId