Interface LegacySinglePoolElement
- All Superinterfaces:
PoolElement, Wrapper
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
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder(StructureTemplate template) Creates a new builder.static LegacySinglePoolElementof(StructureTemplate template, ProcessorList processors, Projection projection, @Nullable LiquidSettings overrideLiquidSettings) Creates a new element.Overrides the structure's own waterlogging behaviour for this element.The processors the template is run through as it is placed.template()The template this element places.default LegacySinglePoolElement.BuilderConverts this object back to a builder.Methods inherited from interface PoolElement
projectionMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
template
The template this element places.- Returns:
- the template
- Since:
- 3.4.0
-
processors
The processors the template is run through as it is placed.- Returns:
- the processor list
- Since:
- 3.4.0
-
overrideLiquidSettings
Overrides the structure's own waterlogging behaviour for this element.- Returns:
- the liquid settings override, if present
- Since:
- 3.4.0
-
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 placeprocessors- the processors the template is run throughprojection- how the template is fitted to the terrainoverrideLiquidSettings- the waterlogging override, or null to use the structure's- Returns:
- a new element
- Since:
- 3.4.0
-
builder
Creates a new builder.- Parameters:
template- the template to place- Returns:
- a new builder
- Since:
- 3.4.0
-