Enum Class StructureProcessors
java.lang.Object
java.lang.Enum<StructureProcessors>
johnsmith.enchantingoverhauled.api.structure.processor.StructureProcessors
- All Implemented Interfaces:
Serializable,Comparable<StructureProcessors>,Constable,net.minecraft.util.StringRepresentable
public enum StructureProcessors
extends Enum<StructureProcessors>
implements net.minecraft.util.StringRepresentable
Enumeration of custom
StructureProcessorTypes introduced by Enchanting Overhauled.
Provides deferred factory suppliers for registering custom structure processors across Fabric, Forge, and NeoForge.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
net.minecraft.util.StringRepresentable.EnumCodec<E extends Enum<E> & net.minecraft.util.StringRepresentable>, net.minecraft.util.StringRepresentable.StringRepresentableCodec<S extends net.minecraft.util.StringRepresentable> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStructure processor that attaches vines to the sturdy horizontal faces of solid blocks (VinesProcessor).Composite processor that chains multipleStructureProcessorLists (ProcessorList).Structure processor that places persistent Jungle Leaves above eligible floor blocks (OvergrowthProcessor).Enhanced rule processor supporting property copying and gradient/weighted outputs (RuleProcessor). -
Field Summary
Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorType<?> build()Builds and caches theStructureProcessorTypeinstance for registration.<T extends net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor>
net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorType<T> get()Retrieves the builtStructureProcessorTypecast to the expected processor type parameter.@NotNull StringRetrieves the serialized registry path name for this structure processor type.static StructureProcessorsReturns the enum constant of this class with the specified name.static StructureProcessors[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OVERGROWTH
Structure processor that places persistent Jungle Leaves above eligible floor blocks (OvergrowthProcessor). -
ADD_VINES
Structure processor that attaches vines to the sturdy horizontal faces of solid blocks (VinesProcessor). -
RULE
Enhanced rule processor supporting property copying and gradient/weighted outputs (RuleProcessor). -
LIST_PROCESSOR
Composite processor that chains multipleStructureProcessorLists (ProcessorList).
-
-
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
-
build
public net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorType<?> build()Builds and caches theStructureProcessorTypeinstance for registration.- Returns:
- The built
StructureProcessorType.
-
get
public <T extends net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor> net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorType<T> get()Retrieves the builtStructureProcessorTypecast to the expected processor type parameter.- Type Parameters:
T- TheStructureProcessorsubclass type.- Returns:
- The registered
StructureProcessorType.
-
getSerializedName
Retrieves the serialized registry path name for this structure processor type.- Specified by:
getSerializedNamein interfacenet.minecraft.util.StringRepresentable- Returns:
- The string key.
-