Class AccountPlayerBuilder
java.lang.Object
com.realtime.crossfire.jxclient.server.crossfire.AccountPlayerBuilder
Builder for
CharacterInformation instances while parsing an
"accountplayers" packet.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull CharacterInformationfinish()Finishes parsing an entry and returns theCharacterInformationfor the entry.voidSets the character's class.voidSets the character's face.voidsetFaceNumber(int faceNumber) Sets the character's face number.voidsetLevel(int level) Sets the character's level.voidSets the character's map.voidSets the character's name.voidSets the character's party.voidSets the character's race.
-
Constructor Details
-
AccountPlayerBuilder
public AccountPlayerBuilder()
-
-
Method Details
-
finish
Finishes parsing an entry and returns theCharacterInformationfor the entry.- Returns:
- the character information for the parsed entry
-
setName
Sets the character's name.- Parameters:
name- the character's name
-
setClass
Sets the character's class.- Parameters:
cClass- the character's class
-
setRace
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
Sets the character's face.- Parameters:
face- the character's face
-
setParty
Sets the character's party.- Parameters:
party- the character's party
-
setMap
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
-