tModLoader v2025.08
A mod to make and play Terraria mods
RemoteClient Class Reference

Public Member Functions

bool IsConnected ()
 
void Reset ()
 
void ResetSections ()
 
bool SectionRange (int size, int firstX, int firstY)
 
void ServerWriteCallBack (object state)
 
void SpamClear ()
 
void SpamUpdate ()
 
void Update ()
 

Static Public Member Functions

static void CheckSection (int playerIndex, Vector2 position, int fluff=1)
 Ensures that the specified client (playerIndex ) has the world section containing the provided position loaded. fluff determines how many surrounding sections will be synced at the same time.

The server should call this method before teleporting the player or when the player is viewing locations detached from the player, such as with Kwad Racer Drone or golf.

Call on Server only!
 

Public Attributes

int Id
 
bool IsActive
 
bool IsAnnouncementCompleted
 
string Name = "Anonymous"
 
bool PendingTerminationApproved
 
byte[] ReadBuffer
 
ISocket Socket
 
float SpamAddBlock
 
float SpamAddBlockMax = 100f
 
float SpamDeleteBlock
 
float SpamDeleteBlockMax = 500f
 
float SpamProjectile
 
float SpamProjectileMax = 100f
 
float SpamWater
 
float SpamWaterMax = 50f
 
int State
 
int StatusCount
 
int StatusMax
 
string StatusText = ""
 
string StatusText2
 
bool[,] TileSections = new bool[Main.maxTilesX / 200 + 1, Main.maxTilesY / 150 + 1]
 Indicates if specific world sections (200 x 150 tile chunks) of the world are loaded by this client. The server will sync world sections to the client as the player visits them by calling CheckSection.

Only accessible on Server!
 
int TimeOutTimer
 

Properties

bool PendingTermination [get]