tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.DataStructures.TileEntitiesManager Class Reference

Public Member Functions

bool CheckValidTile (int id, int x, int y)
 
IReadOnlyDictionary< int, TileEntityEnumerateEntities ()
 
TileEntity GenerateInstance (int id)
 
TileEntity GetTileEntity< T > (int id)
 Gets the base ModTileEntity object with the given id. This method will throw exceptions on failure. More...
 
void NetPlaceEntity (int id, int x, int y)
 
void Register (TileEntity entity)
 
void RegisterAll ()
 
bool TryGetTileEntity< T > (int id, out T tileEntity)
 Attempts to get the base ModTileEntity object with the given id. More...
 

Member Function Documentation

◆ GetTileEntity< T >()

TileEntity Terraria.DataStructures.TileEntitiesManager.GetTileEntity< T > ( int  id)

Gets the base ModTileEntity object with the given id. This method will throw exceptions on failure.

Exceptions
KeyNotFoundException
Type Constraints
T :TileEntity 
T :_types 
T :id 
T :as 
T :T 

◆ TryGetTileEntity< T >()

bool Terraria.DataStructures.TileEntitiesManager.TryGetTileEntity< T > ( int  id,
out T  tileEntity 
)

Attempts to get the base ModTileEntity object with the given id.

Type Constraints
T :TileEntity