Interface NetherFossilStructure
- All Superinterfaces:
DefinedStructure, Keyed, Registerable<NetherFossilStructure>, Structure, Wrapper
@NullMarked
@AsOf("3.4.0")
public interface NetherFossilStructure
extends DefinedStructure, Registerable<NetherFossilStructure>
A nether fossil.
- Since:
- 3.4.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder(StructureSettings settings) Creates a new builder with vanilla's height: anywhere from y=32 up to two blocks below the dimension's ceiling.height()The height the fossil starts searching downward from for solid ground.static NetherFossilStructureof(@Nullable ResourceKey resourceKey, StructureSettings settings, HeightProvider height) Creates a new nether fossil.register()Registers this structure under its resource key.default NetherFossilStructure.BuilderConverts this object back to a builder.default NetherFossilStructurewithResourceKey(ResourceKey resourceKey) Returns a copy of this structure registered under the given key.default NetherFossilStructurewithSettings(StructureSettings settings) Returns a copy of this structure with the given settings.Methods inherited from interface DefinedStructure
resourceKey, settings, withSettingsMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
height
The height the fossil starts searching downward from for solid ground.- Returns:
- the starting height
- Since:
- 3.4.0
-
withSettings
Description copied from interface:DefinedStructureReturns a copy of this structure with the given settings.- Specified by:
withSettingsin interfaceDefinedStructure- Parameters:
settings- the settings the copy carries- Returns:
- a copy of this structure with the given settings
-
withResourceKey
Description copied from interface:DefinedStructureReturns a copy of this structure registered under the given key.- Specified by:
withResourceKeyin interfaceDefinedStructure- Parameters:
resourceKey- the key the copy carries- Returns:
- a copy of this structure with the given key
-
register
Description copied from interface:DefinedStructureRegisters this structure under its resource key.- Specified by:
registerin interfaceDefinedStructure- Specified by:
registerin interfaceRegisterable<NetherFossilStructure>- Returns:
- this structure
-
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 NetherFossilStructure of(@Nullable ResourceKey resourceKey, StructureSettings settings, HeightProvider height) Creates a new nether fossil.- Parameters:
resourceKey- the resource key of the structure, or null if not presentsettings- the settings every structure carriesheight- the height the fossil starts searching downward from- Returns:
- a new nether fossil
- Since:
- 3.4.0
-
builder
Creates a new builder with vanilla's height: anywhere from y=32 up to two blocks below the dimension's ceiling.- Parameters:
settings- the settings every structure carries- Returns:
- a new builder
- Since:
- 3.4.0
-