Enum Class Composer
- All Implemented Interfaces:
Serializable, Comparable<Composer>, Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRegisters biomes through Paper's supported datapack pipeline (DATAPACK_DISCOVERY): each biome is encoded to JSON and loaded as a generated pack.Injects biomes directly into the live Minecraft biome registry by patching Paper's registry internals (compose event viaPaperRegistries, usingsun.misc.Unsafe). -
Method Summary
-
Enum Constant Details
-
INJECTOR
Injects biomes directly into the live Minecraft biome registry by patching Paper's registry internals (compose event viaPaperRegistries, usingsun.misc.Unsafe). Unsafe, not guaranteed to work on the next Java LTS. -
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
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
-