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

◆ CanPlace()

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

Definition at line 980 of file TileLoader.cs.

981 {
983 for (int k = 0; k < hookCanPlace.Length; k++)
984 {
985 if (!hookCanPlace[k](i, j, type))
986 {
987 return false;
988 }
989 }
990 return GetTile(type)?.CanPlace(i, j) ?? true;
991 }
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 >[] HookCanPlace

References Terraria.ModLoader.TileLoader.GetTile(), and Terraria.ModLoader.TileLoader.HookCanPlace.

Referenced by Terraria.Player.PlaceThing_TryReplacingTiles().

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