Package emu.grasscutter.game.avatar
Class Avatar
java.lang.Object
emu.grasscutter.game.avatar.Avatar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFightProperty(FightProperty prop, float value) voidaddToExtraAbilityEmbryos(String openConfig, boolean forceAdd) booleanintintintintfloatgetData()intgetEquipBySlot(EquipType slot) it.unimi.dsi.fastutil.ints.Int2ObjectMap<GameItem>intgetExp()intintit.unimi.dsi.fastutil.ints.Int2FloatOpenHashMapfloatintlonggetGuid()intgetLevel()intintorg.bson.types.ObjectIdintintintintintvoidvoidvoidrecalcStats(boolean forceSendAbilityChange) voidsave()protected voidsetAvatarData(AvatarData data) voidsetCoreProudSkillLevel(int constLevel) voidsetCostume(int costume) voidsetCurrentHp(float currentHp) voidsetExp(int exp) voidsetFetterExp(int fetterExp) voidsetFetterLevel(int fetterLevel) voidsetFetterList(List<Integer> fetterList) voidsetFightProperty(FightProperty prop, float value) voidsetFlyCloak(int flyCloak) voidsetLevel(int level) voidsetNameCardId(int nameCardId) voidsetNameCardRewardId(int nameCardRewardId) voidvoidsetPromoteLevel(int promoteLevel) voidsetSatiation(int satiation) voidsetSatiationPenalty(int satiationPenalty) protected voidsetSkillDepot(AvatarSkillDepotData skillDepot) voidsetSkillDepotData(AvatarSkillDepotData skillDepot) emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfotoProto()emu.grasscutter.net.proto.ShowAvatarInfoOuterClass.ShowAvatarInfobooleanunequipItem(EquipType slot)
-
Constructor Details
-
Avatar
Deprecated. -
Avatar
public Avatar(int avatarId) -
Avatar
-
-
Method Details
-
getPlayer
-
getObjectId
public org.bson.types.ObjectId getObjectId() -
getAvatarData
-
setAvatarData
-
getOwnerId
public int getOwnerId() -
setOwner
-
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
-
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
-
getEquipBySlot
-
getWeapon
-
getSkillDepotId
public int getSkillDepotId() -
getSkillDepot
-
setSkillDepot
-
setSkillDepotData
-
getSkillLevelMap
-
getSkillExtraChargeMap
-
getProudSkillBonusMap
-
getExtraAbilityEmbryos
-
setFetterList
-
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
-
addFightProperty
-
getFightProperty
-
getTalentIdList
-
getCoreProudSkillLevel
public int getCoreProudSkillLevel() -
setCoreProudSkillLevel
public void setCoreProudSkillLevel(int constLevel) -
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
-
unequipItem
-
recalcStats
public void recalcStats() -
recalcStats
public void recalcStats(boolean forceSendAbilityChange) -
addToExtraAbilityEmbryos
-
recalcConstellations
public void recalcConstellations() -
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()
-