Enum Class GenerationTreeSpecies

java.lang.Object
java.lang.Enum<GenerationTreeSpecies>
org.cloudburstmc.server.level.feature.tree.GenerationTreeSpecies
All Implemented Interfaces:
Serializable, Comparable<GenerationTreeSpecies>, Constable

public enum GenerationTreeSpecies extends Enum<GenerationTreeSpecies>
The different tree varieties in Minecraft.
Author:
DaPorkchop_
  • Enum Constant Details

  • 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

      public static GenerationTreeSpecies[] 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

      public static GenerationTreeSpecies valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromItem

      public static GenerationTreeSpecies fromItem(org.cloudburstmc.api.util.Identifier id, int damage)
    • getItemId

      public org.cloudburstmc.api.util.Identifier getItemId()
    • getItemDamage

      public int getItemDamage()
    • getDefaultGenerator

      public WorldFeature getDefaultGenerator()
    • getDefaultGenerator

      public WorldFeature getDefaultGenerator(@NonNull @NonNull IntRange height)
    • getHugeGenerator

      public WorldFeature getHugeGenerator()
    • getFallenGenerator

      public WorldFeature getFallenGenerator()