Interface PoolElement
- All Superinterfaces:
Wrapper
- All Known Subinterfaces:
EmptyPoolElement, FeaturePoolElement, LegacySinglePoolElement, ListPoolElement, SinglePoolElement
One piece a
TemplatePool can place.- Since:
- 3.4.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic PoolElementReads a Minecraft pool element.static EmptyPoolElementempty()Places nothing.static FeaturePoolElementfeature(Projection projection, PlacedFeature feature) Places a placed feature rather than a template.static LegacySinglePoolElementlegacy(StructureTemplate template) Places a structure template, keeping the air blocks it was saved with instead of skipping them.static ListPoolElementlist(Projection projection, List<PoolElement> elements) Places several elements at the same spot, in order.How this element is fitted to the terrain.static SinglePoolElementsingle(StructureTemplate template) Places a structure template, rigidly.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
projection
How this element is fitted to the terrain.- Returns:
- the projection of this element
- Since:
- 3.4.0
-
single
Places a structure template, rigidly.- Parameters:
template- the template to place- Returns:
- a single-template element
- Since:
- 3.4.0
-
legacy
Places a structure template, keeping the air blocks it was saved with instead of skipping them.- Parameters:
template- the template to place- Returns:
- a legacy single-template element
- Since:
- 3.4.0
-
list
Places several elements at the same spot, in order.- Parameters:
projection- how the elements are fitted to the terrainelements- the elements to place- Returns:
- a list element
- Since:
- 3.4.0
-
feature
Places a placed feature rather than a template.- Parameters:
projection- how the feature is fitted to the terrainfeature- the feature to place- Returns:
- a feature element
- Since:
- 3.4.0
-
empty
Places nothing. Weighting it against other elements makes a jigsaw block sometimes stay empty.- Returns:
- the empty element
- Since:
- 3.4.0
-
decode
Reads a Minecraft pool element.- Parameters:
minecraftElement- the pool element to read- Returns:
- the decoded pool element
- Since:
- 3.4.0
-