Serializable
, Comparable<Villager.Type>
, Keyed
public static enum Villager.Type extends Enum<Villager.Type> implements Keyed
Enum Constant | Description |
---|---|
DESERT |
|
JUNGLE |
|
PLAINS |
|
SAVANNA |
|
SNOW |
|
SWAMP |
|
TAIGA |
Modifier and Type | Method | Description |
---|---|---|
NamespacedKey |
getKey() |
Return the namespaced identifier for this object.
|
static Villager.Type |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Villager.Type[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Villager.Type DESERT
public static final Villager.Type JUNGLE
public static final Villager.Type PLAINS
public static final Villager.Type SAVANNA
public static final Villager.Type SNOW
public static final Villager.Type SWAMP
public static final Villager.Type TAIGA
public static Villager.Type[] values()
for (Villager.Type c : Villager.Type.values()) System.out.println(c);
public static Villager.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@NotNull public NamespacedKey getKey()
Keyed
Copyright © 2019. All rights reserved.