Record Class LiveCharacterEditor.Edit
java.lang.Object
java.lang.Record
client.LiveCharacterEditor.Edit
- Record Components:
name- 角色名稱level- 角色等級gmLevel- 角色 GM 等級(characters.gm)job- 職業 IDfame- 人氣值hair- 髮型 IDface- 臉型 IDap- 剩餘能力點(AP)sp- 第 0 格技能書的剩餘技能點(SP);負值表示不變更str- 力量dex- 敏捷intz- 智力luk- 幸運meso- 楓幣acash- 樂豆點數(GASH)maplePoints- 楓葉點數mapId- 當前地圖 ID
- Enclosing class:
LiveCharacterEditor
public static record LiveCharacterEditor.Edit(String name, int level, int gmLevel, int job, int fame, int hair, int face, int ap, int sp, int str, int dex, int intz, int luk, int meso, int acash, int maplePoints, int mapId)
extends Record
角色詳情頁可即時套用的目標欄位快照(與
server.gui.GuiApiServer 的解析欄位對應)。
數值欄位皆為「目標絕對值」(非增減量)。sp 為第 0 格技能書的目標技能點;
傳入負值(-1 哨兵)表示不變更技能點。gmLevel 對應角色(characters)的 GM 等級。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintacash()Returns the value of theacashrecord component.intap()Returns the value of theaprecord component.intdex()Returns the value of thedexrecord component.final booleanIndicates whether some other object is "equal to" this one.intface()Returns the value of thefacerecord component.intfame()Returns the value of thefamerecord component.intgmLevel()Returns the value of thegmLevelrecord component.inthair()Returns the value of thehairrecord component.final inthashCode()Returns a hash code value for this object.intintz()Returns the value of theintzrecord component.intjob()Returns the value of thejobrecord component.intlevel()Returns the value of thelevelrecord component.intluk()Returns the value of thelukrecord component.intmapId()Returns the value of themapIdrecord component.intReturns the value of themaplePointsrecord component.intmeso()Returns the value of themesorecord component.name()Returns the value of thenamerecord component.intsp()Returns the value of thesprecord component.intstr()Returns the value of thestrrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Edit
public Edit(String name, int level, int gmLevel, int job, int fame, int hair, int face, int ap, int sp, int str, int dex, int intz, int luk, int meso, int acash, int maplePoints, int mapId) Creates an instance of aEditrecord class.- Parameters:
name- the value for thenamerecord componentlevel- the value for thelevelrecord componentgmLevel- the value for thegmLevelrecord componentjob- the value for thejobrecord componentfame- the value for thefamerecord componenthair- the value for thehairrecord componentface- the value for thefacerecord componentap- the value for theaprecord componentsp- the value for thesprecord componentstr- the value for thestrrecord componentdex- the value for thedexrecord componentintz- the value for theintzrecord componentluk- the value for thelukrecord componentmeso- the value for themesorecord componentacash- the value for theacashrecord componentmaplePoints- the value for themaplePointsrecord componentmapId- the value for themapIdrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
-
level
-
gmLevel
-
job
-
fame
-
hair
-
face
-
ap
-
sp
-
str
-
dex
-
intz
-
luk
-
meso
-
acash
-
maplePoints
public int maplePoints()Returns the value of themaplePointsrecord component.- Returns:
- the value of the
maplePointsrecord component
-
mapId
-