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

◆ NewItem() [3/10]

static int Terraria.Item.NewItem ( IEntitySource source,
Rectangle rectangle,
int Type,
int Stack = 1,
bool noBroadcast = false,
int prefixGiven = 0,
bool noGrabDelay = false,
bool reverseLookup = false )
inlinestatic



This particular overload uses a Rectangle instead of X, Y, Width, and Height to determine the actual spawn position.

Returns

Definition at line 51976 of file Item.cs.

51977 {
51978 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
51979 //IL_0007: Unknown result type (might be due to invalid IL or missing references)
51980 //IL_000d: Unknown result type (might be due to invalid IL or missing references)
51981 //IL_0013: Unknown result type (might be due to invalid IL or missing references)
51982 return NewItem(source, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, Type, Stack, noBroadcast, prefixGiven, noGrabDelay, reverseLookup);
51983 }
int noGrabDelay
The delay, in ticks, before players can pick up this item. Usually set to 100 (approximately 1....
Definition Item.cs:183
static int NewItem(IEntitySource source, Vector2 pos, Vector2 randomBox, int Type, int Stack=1, bool noBroadcast=false, int prefixGiven=0, bool noGrabDelay=false, bool reverseLookup=false)
This particular overload uses two Vector2 to determine the actual spawn position.
Definition Item.cs:51478

References Terraria.Item.NewItem(), and Terraria.Item.noGrabDelay.

+ Here is the call graph for this function: