Definition at line 55108 of file Player.cs.
55109 {
55110
55111
55112 using (new Item.DisableCloneMethod("Item.Clone is bad for performance, and should not be called during Player.clientClone or ModPlayer.CopyClientStateTo. Use Item.CopyNetStateTo instead"))
55113 {
55115 player.zone1 =
zone1;
55116 player.zone2 =
zone2;
55117 player.zone3 =
zone3;
55118 player.zone4 =
zone4;
55119 player.zone5 =
zone5;
55121 player.luck =
luck;
55143 player.chest =
chest;
55150 for (int i = 0; i < 59; i++)
55151 {
55153 if (i <
armor.Length)
55154 {
55156 }
55157 if (i <
dye.Length)
55158 {
55160 }
55162 {
55164 }
55166 {
55168 }
55170 {
55172 }
55174 {
55176 }
55178 {
55180 }
55182 {
55184 }
55185 }
55189 {
55192 }
55196 return player;
55197 }
55198 }
Item[] item
The items this chest contains. F:Terraria.Chest.maxItems elements long.
Vector2 position
The position of this Entity in world coordinates.
void CopyNetStateTo(Item target)
Use this instead of M:Terraria.Item.Clone for much faster state snapshotting and change sync detectio...
static void CopyCustomBiomesTo(Player player, Player other)
static void CopyClientState(Player player, Player targetCopy)
This is where all ModPlayer hooks are gathered and called.
void CopyTo(SelectionRadial that)
int chest
Represents the chest the player currently has open. If -1, the player has no chest open....
SelectionRadial DpadRadial
TrackedProjectileReference voidLensChest
int statManaMax
The maximum mana this player can have without adjustment. You should not modify this value....
void CloneLoadouts(Player clonePlayer)
Item[] armor
The player's armor and accessories. Indexes 0-2 hold head, chest, and legs armor while 10-12 hold the...
int statLife
The current health of this player. Capped at F:Terraria.Player.statLifeMax2. If you increase this v...
int MinionAttackTargetNPC
Item[] miscEquips
The player's equipment items. From indexes 0-4: Pet, Light Pet, Minecart, Mount, and Hook.
int[] buffTime
The remaining durations in ticks of all buffs this player has active. A value of 0 means that buff ...
Vector2 MinionRestTargetPoint
bool[] hideVisibleAccessory
int[] buffType
The T:Terraria.ID.BuffIDs of all buffs this player has active. A value of 0 means that buff slot is...
bool isOperatingAnotherEntity
int statLifeMax
The maximum health this player can have without adjustment. You should not modify this value....
SelectionRadial CircularRadial
int statMana
The current mana of this player. Capped at F:Terraria.Player.statManaMax2. If you increase this val...
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.Player(), Terraria.Player._clientClone, Terraria.Player.armor, Terraria.Player.autoReuseAllWeapons, Terraria.Player.bank, Terraria.Player.bank2, Terraria.Player.bank3, Terraria.Player.bank4, Terraria.Player.buffTime, Terraria.Player.buffType, Terraria.Player.chest, Terraria.Player.CircularRadial, Terraria.Player.CloneLoadouts(), Terraria.Player.controlDown, Terraria.Player.controlDownHold, Terraria.Player.controlJump, Terraria.Player.controlLeft, Terraria.Player.controlRight, Terraria.Player.controlUp, Terraria.Player.controlUseItem, Terraria.ModLoader.PlayerLoader.CopyClientState(), Terraria.ModLoader.BiomeLoader.CopyCustomBiomesTo(), Terraria.Item.CopyNetStateTo(), Terraria.Player.SelectionRadial.CopyTo(), Terraria.Entity.direction, Terraria.Player.DpadRadial, Terraria.Player.dye, Terraria.Player.extraAccessory, Terraria.Player.hideMisc, Terraria.Player.hideVisibleAccessory, Terraria.Player.inventory, Terraria.Player.isOperatingAnotherEntity, Terraria.Chest.item, Terraria.Player.luck, Terraria.Player.maxBuffs, Terraria.Player.MinionAttackTargetNPC, Terraria.Player.MinionRestTargetPoint, Terraria.Player.miscDyes, Terraria.Player.miscEquips, Terraria.Player.piggyBankProjTracker, Terraria.Entity.position, Terraria.Player.selectedItem, Terraria.Player.shieldRaised, Terraria.Player.statLife, Terraria.Player.statLifeMax, Terraria.Player.statMana, Terraria.Player.statManaMax, Terraria.Player.talkNPC, Terraria.Player.tileEntityAnchor, Terraria.Player.trashItem, Terraria.Player.voidLensChest, Terraria.Player.voidVaultInfo, Terraria.Player.zone1, Terraria.Player.zone2, Terraria.Player.zone3, Terraria.Player.zone4, and Terraria.Player.zone5.