public static enum Horse.Variant extends Enum<Horse.Variant>
Enum Constant and Description |
---|
DONKEY
A donkey
|
HORSE
A normal horse
|
MULE
A mule
|
SKELETON_HORSE
A skeleton horse
|
UNDEAD_HORSE
An undead horse
|
Modifier and Type | Method and Description |
---|---|
static Horse.Variant |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Horse.Variant[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Horse.Variant HORSE
public static final Horse.Variant DONKEY
public static final Horse.Variant MULE
public static final Horse.Variant UNDEAD_HORSE
public static final Horse.Variant SKELETON_HORSE
public static Horse.Variant[] values()
for (Horse.Variant c : Horse.Variant.values()) System.out.println(c);
public static Horse.Variant 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 © 2014. All rights reserved.