Record Class NoiseGeneratorSettings.Data
java.lang.Object
java.lang.Record
dev.wyck.wrapper.level.noise.NoiseGeneratorSettings.Data
- Enclosing interface:
NoiseGeneratorSettings
@AsOf("2.4.0")
public static record NoiseGeneratorSettings.Data(@Nullable ResourceKey resourceKey, NoiseSettings noiseSettings, Material defaultBlock, Material defaultFluid, NoiseRouter noiseRouter, SurfaceRule surfaceRule, List<ClimatePoint> spawnTarget, int seaLevel, boolean disableMobGeneration, boolean aquifersEnabled, boolean oreVeinsEnabled, boolean useLegacyRandomSource)
extends Record
- Since:
- 2.4.0
-
Constructor Summary
ConstructorsConstructorDescriptionData(@Nullable ResourceKey resourceKey, NoiseSettings noiseSettings, Material defaultBlock, Material defaultFluid, NoiseRouter noiseRouter, SurfaceRule surfaceRule, List<ClimatePoint> spawnTarget, int seaLevel, boolean disableMobGeneration, boolean aquifersEnabled, boolean oreVeinsEnabled, boolean useLegacyRandomSource) Creates an instance of aDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theaquifersEnabledrecord component.Returns the value of thedefaultBlockrecord component.Returns the value of thedefaultFluidrecord component.booleanDeprecated.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenoiseRouterrecord component.Returns the value of thenoiseSettingsrecord component.booleanReturns the value of theoreVeinsEnabledrecord component.Returns the value of theresourceKeyrecord component.intseaLevel()Returns the value of theseaLevelrecord component.Returns the value of thespawnTargetrecord component.Returns the value of thesurfaceRulerecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseLegacyRandomSourcerecord component.
-
Constructor Details
-
Data
public Data(@Nullable ResourceKey resourceKey, NoiseSettings noiseSettings, Material defaultBlock, Material defaultFluid, NoiseRouter noiseRouter, SurfaceRule surfaceRule, List<ClimatePoint> spawnTarget, int seaLevel, @Deprecated boolean disableMobGeneration, boolean aquifersEnabled, boolean oreVeinsEnabled, boolean useLegacyRandomSource) Creates an instance of aDatarecord class.- Parameters:
resourceKey- the value for theresourceKeyrecord componentnoiseSettings- the value for thenoiseSettingsrecord componentdefaultBlock- the value for thedefaultBlockrecord componentdefaultFluid- the value for thedefaultFluidrecord componentnoiseRouter- the value for thenoiseRouterrecord componentsurfaceRule- the value for thesurfaceRulerecord componentspawnTarget- the value for thespawnTargetrecord componentseaLevel- the value for theseaLevelrecord componentdisableMobGeneration- the value for thedisableMobGenerationrecord componentaquifersEnabled- the value for theaquifersEnabledrecord componentoreVeinsEnabled- the value for theoreVeinsEnabledrecord componentuseLegacyRandomSource- the value for theuseLegacyRandomSourcerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
resourceKey
Returns the value of theresourceKeyrecord component.- Returns:
- the value of the
resourceKeyrecord component
-
noiseSettings
Returns the value of thenoiseSettingsrecord component.- Returns:
- the value of the
noiseSettingsrecord component
-
defaultBlock
Returns the value of thedefaultBlockrecord component.- Returns:
- the value of the
defaultBlockrecord component
-
defaultFluid
Returns the value of thedefaultFluidrecord component.- Returns:
- the value of the
defaultFluidrecord component
-
noiseRouter
Returns the value of thenoiseRouterrecord component.- Returns:
- the value of the
noiseRouterrecord component
-
surfaceRule
Returns the value of thesurfaceRulerecord component.- Returns:
- the value of the
surfaceRulerecord component
-
spawnTarget
Returns the value of thespawnTargetrecord component.- Returns:
- the value of the
spawnTargetrecord component
-
seaLevel
public int seaLevel()Returns the value of theseaLevelrecord component.- Returns:
- the value of the
seaLevelrecord component
-
disableMobGeneration
Deprecated.Returns the value of thedisableMobGenerationrecord component.- Returns:
- the value of the
disableMobGenerationrecord component
-
aquifersEnabled
public boolean aquifersEnabled()Returns the value of theaquifersEnabledrecord component.- Returns:
- the value of the
aquifersEnabledrecord component
-
oreVeinsEnabled
public boolean oreVeinsEnabled()Returns the value of theoreVeinsEnabledrecord component.- Returns:
- the value of the
oreVeinsEnabledrecord component
-
useLegacyRandomSource
public boolean useLegacyRandomSource()Returns the value of theuseLegacyRandomSourcerecord component.- Returns:
- the value of the
useLegacyRandomSourcerecord component
-