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

◆ UpdatePlacementPreview()

void Terraria.Player.UpdatePlacementPreview ( Item sItem)
inlineprivate

Definition at line 42642 of file Player.cs.

42643 {
42644 if (Main.myPlayer == whoAmI && itemAnimation == 0)
42645 {
42646 Tile targetTile = Main.tile[tileTargetX, tileTargetY];
42650 {
42652 }
42653 }
42654 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
static void CheckAndInjectModSapling(int x, int y, ref int tileToCreate, ref int previewPlaceStyle)
static bool CustomPlace(int type, int style)
static int tileTargetY
Definition Player.cs:2652
static int tileTargetX
Definition Player.cs:2650
void FigureOutWhatToPlace(Tile targetTile, Item sItem, out int tileToCreate, out int previewPlaceStyle, out bool? overrideCanPlace, out int? forcedRandom)
Definition Player.cs:42656

References Terraria.TileObject.CanPlace(), Terraria.ModLoader.PlantLoader.CheckAndInjectModSapling(), Terraria.ObjectData.TileObjectData.CustomPlace(), Terraria.Entity.direction, Terraria.Player.FigureOutWhatToPlace(), Terraria.Player.itemAnimation, Terraria.Main.myPlayer, Terraria.Main.tile, Terraria.Player.tileTargetX, Terraria.Player.tileTargetY, and Terraria.Entity.whoAmI.

Referenced by Terraria.Player.ItemCheck_Inner().

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