public enum TreeSpecies extends Enum<TreeSpecies>
| Enum Constant and Description |
|---|
ACACIA |
BIRCH |
CRIMSON |
DARK_OAK |
JUNGLE |
OAK |
SPRUCE |
WARPED |
| Modifier and Type | Method and Description |
|---|---|
static TreeSpecies |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TreeSpecies[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TreeSpecies OAK
public static final TreeSpecies SPRUCE
public static final TreeSpecies BIRCH
public static final TreeSpecies JUNGLE
public static final TreeSpecies ACACIA
public static final TreeSpecies DARK_OAK
public static final TreeSpecies CRIMSON
public static final TreeSpecies WARPED
public static TreeSpecies[] values()
for (TreeSpecies c : TreeSpecies.values()) System.out.println(c);
public static TreeSpecies 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 © 2021. All rights reserved.