Enum Class GenerationTreeSpecies
java.lang.Object
java.lang.Enum<GenerationTreeSpecies>
org.cloudburstmc.server.level.feature.tree.GenerationTreeSpecies
- All Implemented Interfaces:
Serializable,Comparable<GenerationTreeSpecies>,Constable
The different tree varieties in Minecraft.
- Author:
- DaPorkchop_
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected org.cloudburstmc.api.util.Identifierprotected org.cloudburstmc.api.block.BlockStateprotected org.cloudburstmc.api.block.BlockState -
Method Summary
Modifier and TypeMethodDescriptionstatic GenerationTreeSpeciesfromItem(org.cloudburstmc.api.util.Identifier id, int damage)getDefaultGenerator(@NonNull IntRange height)intorg.cloudburstmc.api.util.Identifierstatic GenerationTreeSpeciesReturns the enum constant of this class with the specified name.static GenerationTreeSpecies[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OAK
-
SWAMP
-
SPRUCE
-
PINE
-
BIRCH
-
JUNGLE
-
ACACIA
-
DARK_OAK
-
MUSHROOM_RED
-
MUSHROOM_BROWN
-
CHORUS
-
-
Field Details
-
log
protected final org.cloudburstmc.api.block.BlockState log -
leaves
protected final org.cloudburstmc.api.block.BlockState leaves -
itemId
protected final org.cloudburstmc.api.util.Identifier itemId -
itemDamage
protected final int itemDamage
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromItem
-
getItemId
public org.cloudburstmc.api.util.Identifier getItemId() -
getItemDamage
public int getItemDamage() -
getDefaultGenerator
-
getDefaultGenerator
-
getHugeGenerator
-
getFallenGenerator
-