Interface MineshaftStructure
- All Superinterfaces:
DefinedStructure, Keyed, Registerable<MineshaftStructure>, Structure, Wrapper
@NullMarked
@AsOf("3.4.0")
public interface MineshaftStructure
extends DefinedStructure, Registerable<MineshaftStructure>
A mineshaft.
- Since:
- 3.4.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder forMineshaftStructure.static enumThe wood a mineshaft is built from. -
Method Summary
Modifier and TypeMethodDescriptionstatic MineshaftStructure.Builderbuilder(StructureSettings settings) Creates a new builder for an oak mineshaft, vanilla's default.The wood the mineshaft is built from.static MineshaftStructureof(@Nullable ResourceKey resourceKey, StructureSettings settings, MineshaftStructure.Type mineshaftType) Creates a new mineshaft.register()Registers this structure under its resource key.default MineshaftStructure.BuilderConverts this object back to a builder.default MineshaftStructurewithResourceKey(ResourceKey resourceKey) Returns a copy of this structure registered under the given key.default MineshaftStructurewithSettings(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
-
mineshaftType
The wood the mineshaft is built from.- Returns:
- the mineshaft type
- 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<MineshaftStructure>- 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 MineshaftStructure of(@Nullable ResourceKey resourceKey, StructureSettings settings, MineshaftStructure.Type mineshaftType) Creates a new mineshaft.- Parameters:
resourceKey- the resource key of the structure, or null if not presentsettings- the settings every structure carriesmineshaftType- the wood the mineshaft is built from- Returns:
- a new mineshaft
- Since:
- 3.4.0
-
builder
Creates a new builder for an oak mineshaft, vanilla's default.- Parameters:
settings- the settings every structure carries- Returns:
- a new builder
- Since:
- 3.4.0
-