Interface ProcessorList
- All Known Subinterfaces:
ComposedProcessorList, ReferencedProcessorList
Wraps Minecraft's StructureProcessorList: the
processors a structure
template is run through, in order, as it is placed. Either a reference to a list already in the
PROCESSOR_LIST registry, or a list authored or decoded here.- Since:
- 3.4.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProcessorListVanilla'sminecraft:emptylist, which runs no processors. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder for an authored processor list.static ProcessorListReads a Minecraft processor list, or a keyed processor-list holder, into a wrapper.static ComposedProcessorListof(StructureProcessor... processors) Authors a processor list running the given processors in order.static ReferencedProcessorListreference(ResourceKey key) References a processor list already registered under the given key.default ProcessorListwrap()Resolves this list's key in Minecraft's processor-list registry and decodes the registered value, keeping the key on the result.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Field Details
-
EMPTY
Vanilla'sminecraft:emptylist, which runs no processors.- Since:
- 3.4.0
-
-
Method Details
-
reference
References a processor list already registered under the given key.- Parameters:
key- the registry key of the processor list- Returns:
- a reference to the registered processor list
- Since:
- 3.4.0
-
wrap
Resolves this list's key in Minecraft's processor-list registry and decodes the registered value, keeping the key on the result.- Returns:
- the decoded processor list
- Since:
- 3.4.0
-
of
Authors a processor list running the given processors in order.- Parameters:
processors- the processors to run- Returns:
- an authored processor list
- Since:
- 3.4.0
-
builder
Creates a new builder for an authored processor list.- Returns:
- a new builder
- Since:
- 3.4.0
-
decode
Reads a Minecraft processor list, or a keyed processor-list holder, into a wrapper.- Parameters:
minecraftProcessorList- the processor list or processor-list holder to read- Returns:
- a reference to the processor list, or the decoded list when it carries no key
- Since:
- 3.4.0
-