public enum GenerationTreeSpecies extends Enum<GenerationTreeSpecies>
| Enum Constant and Description |
|---|
ACACIA |
BIRCH |
CHORUS |
DARK_OAK |
JUNGLE |
MUSHROOM_BROWN |
MUSHROOM_RED |
OAK |
PINE |
SPRUCE |
SWAMP |
| Modifier and Type | Field and Description |
|---|---|
protected int |
itemDamage |
protected Identifier |
itemId |
protected BlockState |
leaves |
protected BlockState |
log |
| Modifier and Type | Method and Description |
|---|---|
static GenerationTreeSpecies |
fromItem(Identifier id,
int damage) |
WorldFeature |
getDefaultGenerator() |
WorldFeature |
getDefaultGenerator(@NonNull IntRange height) |
WorldFeature |
getFallenGenerator() |
WorldFeature |
getHugeGenerator() |
int |
getItemDamage() |
Identifier |
getItemId() |
static GenerationTreeSpecies |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GenerationTreeSpecies[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GenerationTreeSpecies OAK
public static final GenerationTreeSpecies SWAMP
public static final GenerationTreeSpecies SPRUCE
public static final GenerationTreeSpecies PINE
public static final GenerationTreeSpecies BIRCH
public static final GenerationTreeSpecies JUNGLE
public static final GenerationTreeSpecies ACACIA
public static final GenerationTreeSpecies DARK_OAK
public static final GenerationTreeSpecies MUSHROOM_RED
public static final GenerationTreeSpecies MUSHROOM_BROWN
public static final GenerationTreeSpecies CHORUS
protected final BlockState log
protected final BlockState leaves
protected final Identifier itemId
protected final int itemDamage
public static GenerationTreeSpecies[] values()
for (GenerationTreeSpecies c : GenerationTreeSpecies.values()) System.out.println(c);
public static GenerationTreeSpecies 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 static GenerationTreeSpecies fromItem(Identifier id, int damage)
public Identifier getItemId()
public int getItemDamage()
public WorldFeature getDefaultGenerator()
public WorldFeature getDefaultGenerator(@NonNull @NonNull IntRange height)
public WorldFeature getHugeGenerator()
public WorldFeature getFallenGenerator()
Copyright © 2020. All rights reserved.