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

◆ BottomEdgeCanBeAttachedTo()

static bool Terraria.WorldGen.BottomEdgeCanBeAttachedTo ( int i,
int j )
inlinestatic

Definition at line 64563 of file WorldGen.cs.

64564 {
64565 try
64566 {
64567 Tile tile = Main.tile[i, j];
64568 if (tile == null)
64569 {
64570 return true;
64571 }
64572 if (tile.active() && Main.tileSolid[tile.type] && !Main.tileSolidTop[tile.type] && !tile.bottomSlope() && !tile.inActive() && !Main.tileNoAttach[tile.type])
64573 {
64574 return true;
64575 }
64576 }
64577 catch
64578 {
64579 }
64580 return false;
64581 }

References Terraria.Tile.active(), Terraria.Tile.bottomSlope(), Terraria.Tile.inActive(), Terraria.Main.tile, Terraria.Main.tileNoAttach, Terraria.Main.tileSolid, Terraria.Main.tileSolidTop, and Terraria.Tile.type.

+ Here is the call graph for this function: