Class AccountPlayerBuilder

java.lang.Object
com.realtime.crossfire.jxclient.server.crossfire.AccountPlayerBuilder

public class AccountPlayerBuilder extends Object
Builder for CharacterInformation instances while parsing an "accountplayers" packet.
  • Constructor Details

    • AccountPlayerBuilder

      public AccountPlayerBuilder()
  • Method Details

    • finish

      @NotNull public @NotNull CharacterInformation finish()
      Finishes parsing an entry and returns the CharacterInformation for the entry.
      Returns:
      the character information for the parsed entry
    • setName

      public void setName(@NotNull @NotNull String name)
      Sets the character's name.
      Parameters:
      name - the character's name
    • setClass

      public void setClass(@NotNull @NotNull String cClass)
      Sets the character's class.
      Parameters:
      cClass - the character's class
    • setRace

      public void setRace(@NotNull @NotNull String race)
      Sets the character's race.
      Parameters:
      race - the character's race
    • setLevel

      public void setLevel(int level)
      Sets the character's level.
      Parameters:
      level - the character's level
    • setFace

      public void setFace(@NotNull @NotNull String face)
      Sets the character's face.
      Parameters:
      face - the character's face
    • setParty

      public void setParty(@NotNull @NotNull String party)
      Sets the character's party.
      Parameters:
      party - the character's party
    • setMap

      public void setMap(@NotNull @NotNull String map)
      Sets the character's map.
      Parameters:
      map - the character's map
    • setFaceNumber

      public void setFaceNumber(int faceNumber)
      Sets the character's face number.
      Parameters:
      faceNumber - the character's face number