public enum Ability extends Enum<Ability>
| Enum Constant and Description |
|---|
ALLOWED_FLIGHT
Is allowed to fly
|
ATTACK_MOBS
Can attack mobs
|
ATTACK_PLAYERS
Can attack other players
|
AUTO_JUMP
Can auto jump
|
DOORS_AND_SWITCHES
Can interact with doors and switches
|
FLYING
Is flying
|
NO_CLIP
Can fly through the world
|
NO_MVP
Mobs cannot hit player
|
NO_PVM
Player cannot hit mobs.
|
NO_PVP
Player cannot hit other players.
|
OPEN_CONTAINERS
Can open containers e.g.
|
OPERATOR
Is an operator
|
PLACE_AND_DESTROY
Can place and destroy blocks
|
TELEPORT
Can teleport
|
WORLD_BUILDER
Can edit the world
|
WORLD_IMMUTABLE
World cannot be interacted with
|
| Modifier and Type | Method and Description |
|---|---|
static Ability |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Ability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Ability WORLD_IMMUTABLE
public static final Ability NO_PVP
public static final Ability NO_PVM
public static final Ability NO_MVP
public static final Ability AUTO_JUMP
public static final Ability ALLOWED_FLIGHT
public static final Ability NO_CLIP
public static final Ability WORLD_BUILDER
public static final Ability FLYING
public static final Ability PLACE_AND_DESTROY
public static final Ability DOORS_AND_SWITCHES
public static final Ability OPEN_CONTAINERS
public static final Ability ATTACK_PLAYERS
public static final Ability ATTACK_MOBS
public static final Ability OPERATOR
public static final Ability TELEPORT
public static Ability[] values()
for (Ability c : Ability.values()) System.out.println(c);
public static Ability valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2017–2020 NukkitX. All rights reserved.