@Environment(value=CLIENT) public static enum VillagerResourceMetadata.HatType extends Enum<VillagerResourceMetadata.HatType>
Modifier and Type | Field and Description |
---|---|
private static Map<String,VillagerResourceMetadata.HatType> |
byName |
private String |
name |
Modifier and Type | Method and Description |
---|---|
static VillagerResourceMetadata.HatType |
from(String name) |
String |
getName() |
static VillagerResourceMetadata.HatType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VillagerResourceMetadata.HatType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VillagerResourceMetadata.HatType NONE
public static final VillagerResourceMetadata.HatType PARTIAL
public static final VillagerResourceMetadata.HatType FULL
private static final Map<String,VillagerResourceMetadata.HatType> byName
private final String name
public static VillagerResourceMetadata.HatType[] values()
for (VillagerResourceMetadata.HatType c : VillagerResourceMetadata.HatType.values()) System.out.println(c);
public static VillagerResourceMetadata.HatType 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 String getName()
public static VillagerResourceMetadata.HatType from(String name)