public static enum Disguise.Visibility extends java.lang.Enum<Disguise.Visibility>
Enum Constant | Description |
---|---|
EVERYONE |
The disguise is visible to any player (except the disguised player himself).
The visibility parameter is ignored. |
NOT_LIST |
The disguise is visible to anyone but those players whose names are in the list.
The visibility parameter represents this list. |
NOT_PERMISSION |
The disguise is visible to any player who does not have a certain permission.
The first entry of the visibility parameter is this permission. |
ONLY_LIST |
The disguise is visible to any player whose name is in the list.
The visibility parameter represents this list. |
ONLY_PERMISSION |
The disguise is visible to any player who has a certain permission.
The first entry of the visibility parameter is this permission. |
Modifier and Type | Method | Description |
---|---|---|
static Disguise.Visibility |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Disguise.Visibility[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Disguise.Visibility EVERYONE
public static final Disguise.Visibility ONLY_LIST
public static final Disguise.Visibility NOT_LIST
public static final Disguise.Visibility ONLY_PERMISSION
public static final Disguise.Visibility NOT_PERMISSION
public static Disguise.Visibility[] values()
for (Disguise.Visibility c : Disguise.Visibility.values()) System.out.println(c);
public static Disguise.Visibility valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null