Interface ProcessorList

All Superinterfaces:
Keyed, Wrapper
All Known Subinterfaces:
ComposedProcessorList, ReferencedProcessorList

@NullMarked @AsOf("3.4.0") public interface ProcessorList extends Wrapper, Keyed
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 Details

    • EMPTY

      @AsOf("3.4.0") static final ProcessorList EMPTY
      Vanilla's minecraft:empty list, which runs no processors.
      Since:
      3.4.0
  • Method Details

    • reference

      @AsOf("3.4.0") static ReferencedProcessorList reference(ResourceKey key)
      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

      @AsOf("3.4.0") default ProcessorList 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

      @AsOf("3.4.0") static ComposedProcessorList of(StructureProcessor... processors)
      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

      @AsOf("3.4.0") static ComposedProcessorList.Builder builder()
      Creates a new builder for an authored processor list.
      Returns:
      a new builder
      Since:
      3.4.0
    • decode

      @AsOf("3.4.0") static ProcessorList decode(Object minecraftProcessorList)
      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