57284 {
57285
57286
57287 Item item = new Item();
57288 item.SetDefaults(itemType);
57289 if (itemType == 3196)
57290 {
57295 {
57297 }
57299 {
57301 }
57303 {
57305 }
57307 {
57309 }
57311 item.stack = stack;
57312 }
57313 if (itemType == 3197)
57314 {
57319 {
57321 }
57323 {
57325 }
57327 {
57329 }
57331 {
57333 }
57336 }
57339 item.newAndShiny = true;
57341 if (
item2.stack > 0)
57342 {
57344 if (Main.netMode == 1)
57345 {
57346 NetMessage.SendData(21, -1, -1,
null,
number, 1
f);
57347 }
57348 }
57349 else
57350 {
57351 item.position.X = base.Center.X - (float)(item.width / 2);
57352 item.position.Y = base.Center.Y - (float)(item.height / 2);
57353 item.active = true;
57354 PopupText.NewText(PopupTextContext.RegularItemPickup, item, 0);
57355 }
57356 }
Used when attempting to add an item to the player's inventory, but it cannot fit so it spawns in the ...
Vector2 position
The position of this Entity in world coordinates.
int width
The width of this Entity's hitbox, in pixels.
int height
The height of this Entity's hitbox, in pixels.
static void CaughtFishStack(Item item)
This serves as the central class from which item-related functions are carried out....
static void ModifyCaughtFish(Player player, Item fish)
This is where all ModPlayer hooks are gathered and called.
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...