Interface OceanRuinStructure
- All Superinterfaces:
DefinedStructure, Keyed, Registerable<OceanRuinStructure>, Structure, Wrapper
@NullMarked
@AsOf("3.4.0")
public interface OceanRuinStructure
extends DefinedStructure, Registerable<OceanRuinStructure>
An ocean ruin.
- Since:
- 3.4.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe template set an ocean ruin is drawn from.static final classBuilder forOceanRuinStructure. -
Method Summary
Modifier and TypeMethodDescriptionThe template set the ruin is drawn from.static OceanRuinStructure.Builderbuilder(StructureSettings settings, OceanRuinStructure.BiomeTemperature biomeTemperature) Creates a new builder with vanilla's probabilities: a 30% chance of a large ruin and a 90% chance of a cluster around it.floatThe chance, from 0 to 1, that a large ruin is surrounded by smaller ones.floatThe chance, from 0 to 1, that the ruin is a large one.static OceanRuinStructureof(@Nullable ResourceKey resourceKey, StructureSettings settings, OceanRuinStructure.BiomeTemperature biomeTemperature, float largeProbability, float clusterProbability) Creates a new ocean ruin.register()Registers this structure under its resource key.default OceanRuinStructure.BuilderConverts this object back to a builder.default OceanRuinStructurewithResourceKey(ResourceKey resourceKey) Returns a copy of this structure registered under the given key.default OceanRuinStructurewithSettings(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
-
biomeTemperature
The template set the ruin is drawn from.- Returns:
- the biome temperature
- Since:
- 3.4.0
-
largeProbability
The chance, from 0 to 1, that the ruin is a large one.- Returns:
- the large ruin probability
- Since:
- 3.4.0
-
clusterProbability
The chance, from 0 to 1, that a large ruin is surrounded by smaller ones.- Returns:
- the cluster probability
- 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<OceanRuinStructure>- 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 OceanRuinStructure of(@Nullable ResourceKey resourceKey, StructureSettings settings, OceanRuinStructure.BiomeTemperature biomeTemperature, float largeProbability, float clusterProbability) Creates a new ocean ruin.- Parameters:
resourceKey- the resource key of the structure, or null if not presentsettings- the settings every structure carriesbiomeTemperature- the template set the ruin is drawn fromlargeProbability- the chance, from 0 to 1, that the ruin is a large oneclusterProbability- the chance, from 0 to 1, that a large ruin is surrounded by smaller ones- Returns:
- a new ocean ruin
- Since:
- 3.4.0
-
builder
@AsOf("3.4.0") static OceanRuinStructure.Builder builder(StructureSettings settings, OceanRuinStructure.BiomeTemperature biomeTemperature) Creates a new builder with vanilla's probabilities: a 30% chance of a large ruin and a 90% chance of a cluster around it.- Parameters:
settings- the settings every structure carriesbiomeTemperature- the template set the ruin is drawn from- Returns:
- a new builder
- Since:
- 3.4.0
-