Interface LegacySinglePoolElement

All Superinterfaces:
PoolElement, Wrapper

@NullMarked @AsOf("3.4.0") public interface LegacySinglePoolElement extends PoolElement
Places a structure template the way pre-1.14 villages did. Any air saved in the template is placed too, clearing what was there.
Since:
3.4.0
  • Method Details

    • template

      @AsOf("3.4.0") StructureTemplate template()
      The template this element places.
      Returns:
      the template
      Since:
      3.4.0
    • processors

      @AsOf("3.4.0") ProcessorList processors()
      The processors the template is run through as it is placed.
      Returns:
      the processor list
      Since:
      3.4.0
    • overrideLiquidSettings

      @AsOf("3.4.0") Optional<LiquidSettings> overrideLiquidSettings()
      Overrides the structure's own waterlogging behaviour for this element.
      Returns:
      the liquid settings override, if present
      Since:
      3.4.0
    • toBuilder

      @AsOf("3.4.0") default LegacySinglePoolElement.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      a builder with the same values as this object
      Since:
      3.4.0
    • of

      @AsOf("3.4.0") static LegacySinglePoolElement of(StructureTemplate template, ProcessorList processors, Projection projection, @Nullable LiquidSettings overrideLiquidSettings)
      Creates a new element.
      Parameters:
      template - the template to place
      processors - the processors the template is run through
      projection - how the template is fitted to the terrain
      overrideLiquidSettings - the waterlogging override, or null to use the structure's
      Returns:
      a new element
      Since:
      3.4.0
    • builder

      @AsOf("3.4.0") static LegacySinglePoolElement.Builder builder(StructureTemplate template)
      Creates a new builder.
      Parameters:
      template - the template to place
      Returns:
      a new builder
      Since:
      3.4.0