public enum HorseType extends Enum<HorseType>
| Enum Constant and Description |
|---|
DONKEY
Donkey
|
HORSE
Generic Horse
|
MULE
Mule
|
SKELETON
Skeleton horse
|
ZOMBIE
Zombie horse
|
| Modifier and Type | Method and Description |
|---|---|
static HorseType |
fromId(int id) |
int |
id() |
static HorseType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HorseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static HorseType[] values()
for (HorseType c : HorseType.values()) System.out.println(c);
public static HorseType 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 nullpublic int id()
Copyright © 2016. All rights reserved.