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

◆ SetInteractionAnchor()

static void Terraria.DataStructures.TileEntity.SetInteractionAnchor ( Player player,
int x,
int y,
int id )
inlinestaticinherited

Definition at line 232 of file TileEntity.cs.

233 {
234 player.chest = -1;
235 player.SetTalkNPC(-1);
236 if (player.whoAmI == Main.myPlayer)
237 {
238 Main.playerInventory = true;
239 Main.recBigList = false;
240 Main.CreativeMenu.CloseMenu();
242 {
243 PlayerInput.Triggers.JustPressed.Grapple = false;
244 }
245 if (player.tileEntityAnchor.interactEntityID != -1)
246 {
248 }
249 else
250 {
252 }
253 }
254 player.tileEntityAnchor.Set(id, x, y);
255 }
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.Main.CreativeMenu, Terraria.GameInput.PlayerInput.GrappleAndInteractAreShared, Terraria.Main.myPlayer, Terraria.Audio.SoundEngine.PlaySound(), Terraria.Player.SetTalkNPC(), Terraria.Player.tileEntityAnchor, and Terraria.Entity.whoAmI.

Referenced by Terraria.DataStructures.TileEntity.BasicOpenCloseInteraction(), and Terraria.MessageBuffer.GetData().

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