Class Avatar

java.lang.Object
emu.grasscutter.game.avatar.Avatar

@Entity(value="avatars", useDiscriminator=false) public class Avatar extends Object
  • Constructor Details

    • Avatar

      @Deprecated public Avatar()
      Deprecated.
    • Avatar

      public Avatar(int avatarId)
    • Avatar

      public Avatar(AvatarData data)
  • Method Details

    • getPlayer

      public Player getPlayer()
    • getObjectId

      public org.bson.types.ObjectId getObjectId()
    • getAvatarData

      public AvatarData getAvatarData()
    • setAvatarData

      protected void setAvatarData(AvatarData data)
    • getOwnerId

      public int getOwnerId()
    • setOwner

      public void setOwner(Player player)
    • getSatiation

      public int getSatiation()
    • setSatiation

      public void setSatiation(int satiation)
    • getNameCardRewardId

      public int getNameCardRewardId()
    • setNameCardRewardId

      public void setNameCardRewardId(int nameCardRewardId)
    • getSatiationPenalty

      public int getSatiationPenalty()
    • setSatiationPenalty

      public void setSatiationPenalty(int satiationPenalty)
    • getData

      public AvatarData getData()
    • getGuid

      public long getGuid()
    • getAvatarId

      public int getAvatarId()
    • getLevel

      public int getLevel()
    • setLevel

      public void setLevel(int level)
    • getExp

      public int getExp()
    • setExp

      public void setExp(int exp)
    • getPromoteLevel

      public int getPromoteLevel()
    • setPromoteLevel

      public void setPromoteLevel(int promoteLevel)
    • getEquips

      public it.unimi.dsi.fastutil.ints.Int2ObjectMap<GameItem> getEquips()
    • getEquipBySlot

      public GameItem getEquipBySlot(EquipType slot)
    • getWeapon

      public GameItem getWeapon()
    • getSkillDepotId

      public int getSkillDepotId()
    • getSkillDepot

      public AvatarSkillDepotData getSkillDepot()
    • setSkillDepot

      protected void setSkillDepot(AvatarSkillDepotData skillDepot)
    • setSkillDepotData

      public void setSkillDepotData(AvatarSkillDepotData skillDepot)
    • getSkillLevelMap

      public Map<Integer,Integer> getSkillLevelMap()
    • getSkillExtraChargeMap

      public Map<Integer,Integer> getSkillExtraChargeMap()
    • getProudSkillBonusMap

      public Map<Integer,Integer> getProudSkillBonusMap()
    • getExtraAbilityEmbryos

      public Set<String> getExtraAbilityEmbryos()
    • setFetterList

      public void setFetterList(List<Integer> fetterList)
    • getFetterList

      public List<Integer> getFetterList()
    • getFetterLevel

      public int getFetterLevel()
    • setFetterLevel

      public void setFetterLevel(int fetterLevel)
    • getFetterExp

      public int getFetterExp()
    • setFetterExp

      public void setFetterExp(int fetterExp)
    • getNameCardId

      public int getNameCardId()
    • setNameCardId

      public void setNameCardId(int nameCardId)
    • getCurrentHp

      public float getCurrentHp()
    • setCurrentHp

      public void setCurrentHp(float currentHp)
    • getFightProperties

      public it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap getFightProperties()
    • setFightProperty

      public void setFightProperty(FightProperty prop, float value)
    • addFightProperty

      public void addFightProperty(FightProperty prop, float value)
    • getFightProperty

      public float getFightProperty(FightProperty prop)
    • getTalentIdList

      public Set<Integer> getTalentIdList()
    • getCoreProudSkillLevel

      public int getCoreProudSkillLevel()
    • setCoreProudSkillLevel

      public void setCoreProudSkillLevel(int constLevel)
    • getProudSkillList

      public Set<Integer> getProudSkillList()
    • getFlyCloak

      public int getFlyCloak()
    • setFlyCloak

      public void setFlyCloak(int flyCloak)
    • getCostume

      public int getCostume()
    • setCostume

      public void setCostume(int costume)
    • getBornTime

      public int getBornTime()
    • equipItem

      public boolean equipItem(GameItem item, boolean shouldRecalc)
    • unequipItem

      public boolean unequipItem(EquipType slot)
    • recalcStats

      public void recalcStats()
    • recalcStats

      public void recalcStats(boolean forceSendAbilityChange)
    • addToExtraAbilityEmbryos

      public void addToExtraAbilityEmbryos(String openConfig, boolean forceAdd)
    • recalcConstellations

      public void recalcConstellations()
    • getAsEntity

      public EntityAvatar getAsEntity()
    • getEntityId

      public int getEntityId()
    • save

      public void save()
    • toProto

      public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo toProto()
    • toShowAvatarInfoProto

      public emu.grasscutter.net.proto.ShowAvatarInfoOuterClass.ShowAvatarInfo toShowAvatarInfoProto()