Interface Structure
- All Known Subinterfaces:
ComposedStructure, DefinedStructure, JigsawStructure, MineshaftStructure, NetherFossilStructure, OceanRuinStructure, ReferencedStructure, RuinedPortalStructure, ShipwreckStructure, SimpleStructure
Structures are naturally-generated formations that are placed in the world from pre-built
templates.
Wraps Minecraft's Structure.
- Since:
- 3.4.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleStructure.BuilderburiedTreasure(StructureSettings settings) Creates a new builder for buried treasure.static StructureReads a Minecraft structure, or a keyed structure holder, into a wrapper.static SimpleStructure.BuilderdesertPyramid(StructureSettings settings) Creates a new builder for a desert pyramid.static SimpleStructure.BuilderendCity(StructureSettings settings) Creates a new builder for an end city.static SimpleStructure.Builderfortress(StructureSettings settings) Creates a new builder for a nether fortress.static SimpleStructure.Builderigloo(StructureSettings settings) Creates a new builder for an igloo.static JigsawStructure.Builderjigsaw(StructureSettings settings, TemplatePool startPool) Creates a new builder for a jigsaw structure, which grows outward from a piece drawn from its start pool.static SimpleStructure.BuilderjungleTemple(StructureSettings settings) Creates a new builder for a jungle temple.static MineshaftStructure.Buildermineshaft(StructureSettings settings) Creates a new builder for an oak mineshaft.netherFossil(StructureSettings settings) Creates a new builder for a nether fossil.static SimpleStructure.BuilderoceanMonument(StructureSettings settings) Creates a new builder for an ocean monument.static OceanRuinStructure.BuilderoceanRuin(StructureSettings settings, OceanRuinStructure.BiomeTemperature biomeTemperature) Creates a new builder for an ocean ruin.static ReferencedStructurereference(ResourceKey key) References a structure already registered under the given key.ruinedPortal(StructureSettings settings) Creates a new builder for a ruined portal.static ShipwreckStructure.Buildershipwreck(StructureSettings settings) Creates a new builder for a shipwreck on the ocean floor.static SimpleStructure.Builderstronghold(StructureSettings settings) Creates a new builder for a stronghold.static SimpleStructure.BuilderswampHut(StructureSettings settings) Creates a new builder for a swamp hut.static SimpleStructure.BuilderwoodlandMansion(StructureSettings settings) Creates a new builder for a woodland mansion.default Structurewrap()Resolves this structure's key in Minecraft's structure registry and decodes the registered value, keeping the key on the result.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
wrap
-
reference
References a structure already registered under the given key.- Parameters:
key- the registry key of the structure- Returns:
- a reference to the registered structure
- Since:
- 3.4.0
-
jigsaw
@AsOf("3.4.0") static JigsawStructure.Builder jigsaw(StructureSettings settings, TemplatePool startPool) Creates a new builder for a jigsaw structure, which grows outward from a piece drawn from its start pool. Villages, bastions, ancient cities and trial chambers are jigsaw structures.- Parameters:
settings- the settings every structure carriesstartPool- the pool the first piece is drawn from- Returns:
- a new builder
- Since:
- 3.4.0
-
buriedTreasure
Creates a new builder for buried treasure.- Parameters:
settings- the settings every structure carries- Returns:
- a new builder
- Since:
- 3.4.0
-
desertPyramid
Creates a new builder for a desert pyramid.- Parameters:
settings- the settings every structure carries- Returns:
- a new builder
- Since:
- 3.4.0
-
endCity
Creates a new builder for an end city.- Parameters:
settings- the settings every structure carries- Returns:
- a new builder
- Since:
- 3.4.0
-
fortress
Creates a new builder for a nether fortress.- Parameters:
settings- the settings every structure carries- Returns:
- a new builder
- Since:
- 3.4.0
-
igloo
Creates a new builder for an igloo.- Parameters:
settings- the settings every structure carries- Returns:
- a new builder
- Since:
- 3.4.0
-
jungleTemple
Creates a new builder for a jungle temple.- Parameters:
settings- the settings every structure carries- Returns:
- a new builder
- Since:
- 3.4.0
-
oceanMonument
Creates a new builder for an ocean monument.- Parameters:
settings- the settings every structure carries- Returns:
- a new builder
- Since:
- 3.4.0
-
stronghold
Creates a new builder for a stronghold.- Parameters:
settings- the settings every structure carries- Returns:
- a new builder
- Since:
- 3.4.0
-
swampHut
Creates a new builder for a swamp hut.- Parameters:
settings- the settings every structure carries- Returns:
- a new builder
- Since:
- 3.4.0
-
woodlandMansion
Creates a new builder for a woodland mansion.- Parameters:
settings- the settings every structure carries- Returns:
- a new builder
- Since:
- 3.4.0
-
mineshaft
Creates a new builder for an oak mineshaft.- Parameters:
settings- the settings every structure carries- Returns:
- a new builder
- Since:
- 3.4.0
-
netherFossil
Creates a new builder for a nether fossil.- Parameters:
settings- the settings every structure carries- Returns:
- a new builder
- Since:
- 3.4.0
-
oceanRuin
@AsOf("3.4.0") static OceanRuinStructure.Builder oceanRuin(StructureSettings settings, OceanRuinStructure.BiomeTemperature biomeTemperature) Creates a new builder for an ocean ruin.- Parameters:
settings- the settings every structure carriesbiomeTemperature- the template set the ruin is drawn from- Returns:
- a new builder
- Since:
- 3.4.0
-
ruinedPortal
Creates a new builder for a ruined portal. Add at least one setup before building.- Parameters:
settings- the settings every structure carries- Returns:
- a new builder
- Since:
- 3.4.0
-
shipwreck
Creates a new builder for a shipwreck on the ocean floor.- Parameters:
settings- the settings every structure carries- Returns:
- a new builder
- Since:
- 3.4.0
-
decode
Reads a Minecraft structure, or a keyed structure holder, into a wrapper.- Parameters:
minecraftStructure- the structure or structure holder to read- Returns:
- a reference to the structure, or the decoded structure when it carries no key
- Since:
- 3.4.0
-