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 org.cloudburstmc.api.util.Identifier |
itemId |
protected org.cloudburstmc.api.block.BlockState |
leaves |
protected org.cloudburstmc.api.block.BlockState |
log |
| Modifier and Type | Method and Description |
|---|---|
static GenerationTreeSpecies |
fromItem(org.cloudburstmc.api.util.Identifier id,
int damage) |
WorldFeature |
getDefaultGenerator() |
WorldFeature |
getDefaultGenerator(@NonNull IntRange height) |
WorldFeature |
getFallenGenerator() |
WorldFeature |
getHugeGenerator() |
int |
getItemDamage() |
org.cloudburstmc.api.util.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 org.cloudburstmc.api.block.BlockState log
protected final org.cloudburstmc.api.block.BlockState leaves
protected final org.cloudburstmc.api.util.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(org.cloudburstmc.api.util.Identifier id, int damage)
public org.cloudburstmc.api.util.Identifier getItemId()
public int getItemDamage()
public WorldFeature getDefaultGenerator()
public WorldFeature getDefaultGenerator(@NonNull @NonNull IntRange height)
public WorldFeature getHugeGenerator()
public WorldFeature getFallenGenerator()
Copyright © 2021. All rights reserved.