public class SkillSet
extends java.lang.Object
Constructor and Description |
---|
SkillSet(@NotNull GuiStateManager guiStateManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addSkill(int id,
@NotNull java.lang.String skillName,
int face)
Adds a new skill to the list of known skills.
|
void |
clearNumberedSkills()
Clears all stat info in
numberedSkills . |
void |
clearSkills()
Clears all skills.
|
@NotNull Skill |
getNamedSkill(@NotNull java.lang.String skillName,
int face)
Returns the skill instance for a given skill name.
|
@Nullable Skill |
getSkill(int id)
Returns the given skill as a Skill object.
|
int |
getSkillId(java.lang.String name)
Get a skill identifier from the skill name.
|
void |
setSkillExtra(int id,
@NotNull java.lang.String message)
Defines additional skill information, when the server supports it.
|
public SkillSet(@NotNull @NotNull GuiStateManager guiStateManager)
guiStateManager
- the gui state manager to watchpublic void clearSkills()
public void addSkill(int id, @NotNull @NotNull java.lang.String skillName, int face)
id
- the numerical identifier for the new skillskillName
- the skill nameface
- the skill's facepublic void setSkillExtra(int id, @NotNull @NotNull java.lang.String message)
id
- the numerical identifier for the skillmessage
- skill's message@NotNull public @NotNull Skill getNamedSkill(@NotNull @NotNull java.lang.String skillName, int face)
skillName
- the skill name to look upface
- the skill face to setpublic void clearNumberedSkills()
numberedSkills
.@Nullable public @Nullable Skill getSkill(int id)
id
- the numerical skill identifiernull
for undefined skillspublic int getSkillId(java.lang.String name)
getSkill(int)
.name
- skill's name