public class SkillAddedSkinEvent extends java.lang.Object implements SkinEvent
SkinEvent
that executes a CommandList
whenever a new skill
has been gained.Modifier and Type | Field and Description |
---|---|
private CommandList |
commandList
The
CommandList to execute. |
private Skill |
skill
The
Skill to monitor. |
private SkillListener |
skillListener
The
SkillListener attached to skill . |
Constructor and Description |
---|
SkillAddedSkinEvent(CommandList commandList,
Skill skill)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Will be called when the skin is disposed.
|
@NotNull private final CommandList commandList
CommandList
to execute.@NotNull private final SkillListener skillListener
SkillListener
attached to skill
.public SkillAddedSkinEvent(@NotNull CommandList commandList, @NotNull Skill skill)
commandList
- the command list to executeskill
- the skill to monitor