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

◆ OnPlayerUpdate()

override void Terraria.GameContent.Tile_Entities.TEDisplayDoll.OnPlayerUpdate ( Player player)
inlinevirtual

Reimplemented from Terraria.DataStructures.TileEntity.

Definition at line 289 of file TEDisplayDoll.cs.

290 {
291 if (!player.InInteractionRange(player.tileEntityAnchor.X, player.tileEntityAnchor.Y, TileReachCheckSettings.Simple) || player.chest != -1 || player.talkNPC != -1)
292 {
293 if (player.chest == -1 && player.talkNPC == -1)
294 {
296 }
297 player.tileEntityAnchor.Clear();
298 Recipe.FindRecipes();
299 }
300 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...

References Terraria.Player.chest, Terraria.DataStructures.PlayerInteractionAnchor.Clear(), Terraria.Recipe.FindRecipes(), Terraria.Player.InInteractionRange(), Terraria.Audio.SoundEngine.PlaySound(), Terraria.DataStructures.TileReachCheckSettings.Simple, Terraria.Player.talkNPC, Terraria.Player.tileEntityAnchor, Terraria.DataStructures.PlayerInteractionAnchor.X, and Terraria.DataStructures.PlayerInteractionAnchor.Y.

+ Here is the call graph for this function: