Record Class LiveCharacterEditor.Edit

java.lang.Object
java.lang.Record
client.LiveCharacterEditor.Edit
Record Components:
name - 角色名稱
level - 角色等級
gmLevel - 角色 GM 等級(characters.gm)
job - 職業 ID
fame - 人氣值
hair - 髮型 ID
face - 臉型 ID
ap - 剩餘能力點(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
    Constructor
    Description
    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 a Edit record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the acash record component.
    int
    ap()
    Returns the value of the ap record component.
    int
    dex()
    Returns the value of the dex record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns the value of the face record component.
    int
    Returns the value of the fame record component.
    int
    Returns the value of the gmLevel record component.
    int
    Returns the value of the hair record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the intz record component.
    int
    job()
    Returns the value of the job record component.
    int
    Returns the value of the level record component.
    int
    luk()
    Returns the value of the luk record component.
    int
    Returns the value of the mapId record component.
    int
    Returns the value of the maplePoints record component.
    int
    Returns the value of the meso record component.
    Returns the value of the name record component.
    int
    sp()
    Returns the value of the sp record component.
    int
    str()
    Returns the value of the str record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a Edit record class.
      Parameters:
      name - the value for the name record component
      level - the value for the level record component
      gmLevel - the value for the gmLevel record component
      job - the value for the job record component
      fame - the value for the fame record component
      hair - the value for the hair record component
      face - the value for the face record component
      ap - the value for the ap record component
      sp - the value for the sp record component
      str - the value for the str record component
      dex - the value for the dex record component
      intz - the value for the intz record component
      luk - the value for the luk record component
      meso - the value for the meso record component
      acash - the value for the acash record component
      maplePoints - the value for the maplePoints record component
      mapId - the value for the mapId record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • level

      public int level()
      Returns the value of the level record component.
      Returns:
      the value of the level record component
    • gmLevel

      public int gmLevel()
      Returns the value of the gmLevel record component.
      Returns:
      the value of the gmLevel record component
    • job

      public int job()
      Returns the value of the job record component.
      Returns:
      the value of the job record component
    • fame

      public int fame()
      Returns the value of the fame record component.
      Returns:
      the value of the fame record component
    • hair

      public int hair()
      Returns the value of the hair record component.
      Returns:
      the value of the hair record component
    • face

      public int face()
      Returns the value of the face record component.
      Returns:
      the value of the face record component
    • ap

      public int ap()
      Returns the value of the ap record component.
      Returns:
      the value of the ap record component
    • sp

      public int sp()
      Returns the value of the sp record component.
      Returns:
      the value of the sp record component
    • str

      public int str()
      Returns the value of the str record component.
      Returns:
      the value of the str record component
    • dex

      public int dex()
      Returns the value of the dex record component.
      Returns:
      the value of the dex record component
    • intz

      public int intz()
      Returns the value of the intz record component.
      Returns:
      the value of the intz record component
    • luk

      public int luk()
      Returns the value of the luk record component.
      Returns:
      the value of the luk record component
    • meso

      public int meso()
      Returns the value of the meso record component.
      Returns:
      the value of the meso record component
    • acash

      public int acash()
      Returns the value of the acash record component.
      Returns:
      the value of the acash record component
    • maplePoints

      public int maplePoints()
      Returns the value of the maplePoints record component.
      Returns:
      the value of the maplePoints record component
    • mapId

      public int mapId()
      Returns the value of the mapId record component.
      Returns:
      the value of the mapId record component