|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inline |
Spawns an item into the world at this players position. This is a simpler alternative to M:Terraria.Item.NewItem(Terraria.DataStructures.IEntitySource,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean,System.Int32,System.Boolean,System.Boolean). This method can be called from multiplayer client code without necessitating manually syncing the item.
Use M:Terraria.Player.QuickSpawnItem(Terraria.DataStructures.IEntitySource,Terraria.Item,System.Int32) if a specific instance of an Item needs to be spawned into the world to preserve modded data.
| source | |
| item | |
| stack |
Definition at line 7384 of file Player.cs.
References Terraria.Entity.height, Terraria.Main.netMode, Terraria.Item.NewItem(), Terraria.Entity.position, Terraria.NetMessage.SendData(), and Terraria.Entity.width.
Referenced by Terraria.Player.ItemCheck_UseMinecartPowerUp(), Terraria.Player.QuickSpawnItemDirect(), Terraria.Player.TryGettingDevArmor(), and Terraria.ModLoader.Default.ModLoaderMod.TryGettingPatreonOrDevArmor().
Here is the call graph for this function:
Here is the caller graph for this function: