public interface RolesManager
Modifier and Type | Method and Description |
---|---|
PlayerRole |
getCoopRole()
Get the co-op's role.
|
PlayerRole |
getDefaultRole()
Get the default role that players are assigned with when they join an island.
|
PlayerRole |
getGuestRole()
Get the guest's role.
|
PlayerRole |
getLastRole()
Get the highest role in the ladder - aka, leader's role.
|
PlayerRole |
getPlayerRole(int weight)
Get a player role by it's weight.
|
PlayerRole |
getPlayerRole(java.lang.String name)
Get a player role by it's name.
|
PlayerRole |
getPlayerRoleFromId(int id)
Get a player role by it's id.
|
java.util.List<PlayerRole> |
getRoles()
Get a list of all the roles.
|
@Nullable PlayerRole getPlayerRole(int weight)
weight
- The weight to check.@Nullable PlayerRole getPlayerRoleFromId(int id)
id
- The id to check.PlayerRole getPlayerRole(java.lang.String name)
name
- The name to check.PlayerRole getDefaultRole()
PlayerRole getLastRole()
PlayerRole getGuestRole()
PlayerRole getCoopRole()
java.util.List<PlayerRole> getRoles()