public static enum Entity.Type extends Enum<Entity.Type>
Entity| Enum Constant and Description |
|---|
CONSOLE
Represents the server console
|
PLAYER
Represents a player connected to the server
|
| Modifier and Type | Method and Description |
|---|---|
static Entity.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Entity.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Entity.Type PLAYER
public static final Entity.Type CONSOLE
public static Entity.Type[] values()
for (Entity.Type c : Entity.Type.values()) System.out.println(c);
public static Entity.Type 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 null