public interface PlayerRole
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayName()
Get the display-name of the role.
|
int |
getId()
Get the id of the role.
|
java.lang.String |
getName()
Get the name of the role.
|
PlayerRole |
getNextRole()
Get the next role in the ladder.
|
PlayerRole |
getPreviousRole()
Get the previous role in the ladder.
|
int |
getWeight()
Get the weight of the role in the ladder.
|
boolean |
isFirstRole()
Check whether or not the role is the first role in the ladder.
|
boolean |
isHigherThan(PlayerRole role)
Check whether or not the role is higher than another role.
|
boolean |
isLastRole()
Check whether or not the role is the last role in the ladder.
|
boolean |
isLessThan(PlayerRole role)
Check whether or not the role is less than another role.
|
boolean |
isRoleLadder()
Check whether or not the role is the role is in the ladder.
|
int getId()
java.lang.String getName()
java.lang.String getDisplayName()
int getWeight()
boolean isHigherThan(PlayerRole role)
role
- The role to check.boolean isLessThan(PlayerRole role)
role
- The role to check.boolean isFirstRole()
boolean isLastRole()
boolean isRoleLadder()
@Nullable PlayerRole getNextRole()
@Nullable PlayerRole getPreviousRole()