TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ RandomUpdate()

static void Terraria.ModLoader.TileLoader.RandomUpdate ( int i,
int j,
int type )
inlinestatic

Definition at line 942 of file TileLoader.cs.

943 {
944 if (Main.tile[i, j].active())
945 {
946 GetTile(type)?.RandomUpdate(i, j);
948 for (int k = 0; k < hookRandomUpdate.Length; k++)
949 {
950 hookRandomUpdate[k](i, j, type);
951 }
952 }
953 }
static ModTile GetTile(int type)
Gets the ModTile instance with the given type. If no ModTile with the given type exists,...
static Action< int, int, int >[] HookRandomUpdate

References Terraria.ModLoader.TileLoader.GetTile(), Terraria.ModLoader.TileLoader.HookRandomUpdate, and Terraria.Main.tile.

Referenced by Terraria.WorldGen.UpdateWorld_OvergroundTile(), and Terraria.WorldGen.UpdateWorld_UndergroundTile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: