Enum Class Composer

java.lang.Object
java.lang.Enum<Composer>
dev.wyck.registry.bootstrap.Composer
All Implemented Interfaces:
Serializable, Comparable<Composer>, Constable

@NullMarked @AsOf("2.3.0") @Experimental public enum Composer extends Enum<Composer>
Selects how custom biomes are registered into the biome registry during the bootstrap phase. Both run before the registry freezes; they differ in mechanism and stability.
Since:
2.3.0
  • Enum Constant Details

    • INJECTOR

      public static final Composer INJECTOR
      Injects biomes directly into the live Minecraft biome registry by patching Paper's registry internals (compose event via PaperRegistries, using sun.misc.Unsafe). Unsafe, not guaranteed to work on the next Java LTS.
    • DATAPACK

      public static final Composer DATAPACK
      Registers biomes through Paper's supported datapack pipeline (DATAPACK_DISCOVERY): each biome is encoded to JSON and loaded as a generated pack.
  • Method Details

    • values

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