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

◆ PlaceThing_Tiles_CheckLavaBlocking()

bool Terraria.Player.PlaceThing_Tiles_CheckLavaBlocking ( )
inlineprivate

Definition at line 40235 of file Player.cs.

40236 {
40237 bool result = false;
40238 if (Main.tile[tileTargetX, tileTargetY].liquid > 0 && Main.tile[tileTargetX, tileTargetY].lava())
40239 {
40240 if (Main.tileSolid[inventory[selectedItem].createTile])
40241 {
40242 result = true;
40243 }
40245 {
40246 result = true;
40247 }
40248 }
40249 return result;
40250 }
int createTile
The ID of the tile this item places on use. Either a T:Terraria.ID.TileID entry or M:Terraria....
Definition Item.cs:435
int placeStyle
The style of the tile being placed. Used for tiles that have a different look depending on the item u...
Definition Item.cs:448
static bool CheckLiquidPlacement(int type, int style, Tile checkTile)
static int tileTargetY
Definition Player.cs:2652
static int tileTargetX
Definition Player.cs:2650
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
Definition Player.cs:1767

References Terraria.ObjectData.TileObjectData.CheckLiquidPlacement(), Terraria.Item.createTile, Terraria.Player.inventory, Terraria.Item.placeStyle, Terraria.Player.selectedItem, Terraria.Main.tile, Terraria.Main.tileSolid, Terraria.Player.tileTargetX, and Terraria.Player.tileTargetY.

Referenced by Terraria.Player.PlaceThing_Tiles().

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