Definition at line 56716 of file Player.cs.
56717 {
56718
56719
56720
56721
56722
56723
56724
56725
56726
56727
56728
56729
56730
56731
56732
56733
56734
56735
56736
56737
56738
56739
56750 name =
string.Empty;
56751 bodyFrame.Width = 40;
56752 bodyFrame.Height = 56;
56753 legFrame.Width = 40;
56754 legFrame.Height = 56;
56757 for (int i = 0; i < 59; i++)
56758 {
56759 if (i <
armor.Length)
56760 {
56761 armor[i] =
new Item();
56762 }
56764 }
56765 for (
int j = 0;
j < 40;
j++)
56766 {
56771 }
56772 for (
int k = 0;
k <
dye.Length;
k++)
56773 {
56774 dye[
k] =
new Item();
56775 }
56777 {
56779 }
56781 {
56783 }
56798 {
56801 }
56804 mount =
new Mount();
56810 }
Item[] item
The items this chest contains. F:Terraria.Chest.maxItems elements long.
int width
The width of this Entity's hitbox, in pixels.
int height
The height of this Entity's hitbox, in pixels.
This serves as the central class from which buff-related functions are supported and carried out.
This serves as the central class from which NPC-related functions are carried out....
static void SetupPlayer(Player player)
static void ModifyMaxStats(Player player)
Reset this player's F:Terraria.Player.statLifeMax and F:Terraria.Player.statManaMax to their vanilla ...
This is where all ModPlayer hooks are gathered and called.
static int ProjectileCount
This serves as the central class from which projectile-related functions are carried out....
bool[] buffImmune
Indexed by T:Terraria.ID.BuffID. If true for a given T:Terraria.ID.BuffID, then this player cannot be...
DoorOpeningHelper doorHelper
string name
This player's displayed name. Usually capped at 20 characters.
TrackedProjectileReference voidLensChest
int statManaMax
The maximum mana this player can have without adjustment. You should not modify this value....
Item[] armor
The player's armor and accessories. Indexes 0-2 hold head, chest, and legs armor while 10-12 hold the...
Item[] miscEquips
The player's equipment items. From indexes 0-4: Pet, Light Pet, Minecart, Mount, and Hook.
Item lastVisualizedSelectedItem
Mount mount
This player's T:Terraria.Mount. Do not overwrite this value. Instead, call M:Terraria....
int[] buffTime
The remaining durations in ticks of all buffs this player has active. A value of 0 means that buff ...
void ResetDamageClassData()
int[] buffType
The T:Terraria.ID.BuffIDs of all buffs this player has active. A value of 0 means that buff slot is...
CreativeUnlocksTracker creativeTracker
int[] ownedProjectileCounts
Provides efficient access to the number of projectiles of the specified type owned by this player cur...
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
TrackedProjectileReference piggyBankProjTracker
PlayerInteractionAnchor tileEntityAnchor
References Terraria.Player.adjTile, Terraria.Player.armor, Terraria.Player.ateArtisanBread, Terraria.Player.bank, Terraria.Player.bank2, Terraria.Player.bank3, Terraria.Player.bank4, Terraria.ModLoader.BuffLoader.BuffCount, Terraria.Player.buffImmune, Terraria.Player.buffTime, Terraria.Player.buffType, Terraria.Player.builderAccStatus, Terraria.DataStructures.PlayerInteractionAnchor.Clear(), Terraria.DataStructures.TrackedProjectileReference.Clear(), Terraria.Player.creativeTracker, Terraria.Player.doorHelper, Terraria.Player.dye, Terraria.Player.extraAccessory, Terraria.Player.grappling, Terraria.Entity.height, Terraria.Player.hitReplace, Terraria.Player.hitTile, Terraria.Player.inventory, Terraria.Chest.item, Terraria.Player.lastVisualizedSelectedItem, Terraria.Player.maxBuffs, Terraria.Player.miscDyes, Terraria.Player.miscEquips, Terraria.ModLoader.PlayerLoader.ModifyMaxStats(), Terraria.Player.mount, Terraria.Player.name, Terraria.ModLoader.NPCLoader.NPCCount, Terraria.Player.npcTypeNoAggro, Terraria.Player.oldAdjTile, Terraria.Player.ownedProjectileCounts, Terraria.Player.piggyBankProjTracker, Terraria.ModLoader.ProjectileLoader.ProjectileCount, Terraria.Player.ResetDamageClassData(), Terraria.ModLoader.PlayerLoader.SetupPlayer(), Terraria.Player.statManaMax, Terraria.Player.talkNPC, Terraria.Player.tileEntityAnchor, Terraria.Player.trashItem, Terraria.Player.usedAegisCrystal, Terraria.Player.usedAegisFruit, Terraria.Player.usedAmbrosia, Terraria.Player.usedArcaneCrystal, Terraria.Player.usedGalaxyPearl, Terraria.Player.usedGummyWorm, Terraria.Player.voidLensChest, and Terraria.Entity.width.
Referenced by Terraria.Player.clientClone(), Terraria.Player.LoadPlayer(), and Terraria.Player.SerializedClone().