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

◆ CanExplode()

static bool Terraria.ModLoader.TileLoader.CanExplode ( int i,
int j )
inlinestatic

Definition at line 699 of file TileLoader.cs.

700 {
701 int type = Main.tile[i, j].type;
702 ModTile modTile = GetTile(type);
703 if (modTile != null && !modTile.CanExplode(i, j))
704 {
705 return false;
706 }
708 for (int k = 0; k < hookCanExplode.Length; k++)
709 {
710 if (!hookCanExplode[k](i, j, type))
711 {
712 return false;
713 }
714 }
715 return true;
716 }
static ModTile GetTile(int type)
Gets the ModTile instance with the given type. If no ModTile with the given type exists,...
static Func< int, int, int, bool >[] HookCanExplode
Definition TileLoader.cs:81

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

Referenced by Terraria.Projectile.CanExplodeTile().

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