Package net.minecraft.world.gen.noise
Record Class NoiseConfig
java.lang.Object
java.lang.Record
net.minecraft.world.gen.noise.NoiseConfig
- Record Components:
random-legacyWorldSeed-noiseParametersRegistry-router-sampler-surfaceBuilder-aquiferRandom-oreRandom-noiseIntances-randomDerivers-
public record NoiseConfig(RandomDeriver random, long legacyWorldSeed, Registry<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersRegistry, NoiseRouter router, MultiNoiseUtil.MultiNoiseSampler sampler, SurfaceBuilder surfaceBuilder, RandomDeriver aquiferRandom, RandomDeriver oreRandom, Map<RegistryKey<DoublePerlinNoiseSampler.NoiseParameters>,DoublePerlinNoiseSampler> noiseIntances, Map<Identifier,RandomDeriver> randomDerivers)
extends Record
- Mappings:
Namespace Name official cwfintermediary net/minecraft/class_7138named net/minecraft/world/gen/noise/NoiseConfigofficial aintermediary comp_540named randomofficial bintermediary comp_541named legacyWorldSeedofficial cintermediary comp_542named noiseParametersRegistryofficial dintermediary comp_543named routerofficial eintermediary comp_544named samplerofficial fintermediary comp_545named surfaceBuilderofficial gintermediary comp_546named aquiferRandomofficial hintermediary comp_547named oreRandomofficial iintermediary comp_548named noiseIntancesofficial jintermediary comp_549named randomDerivers
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RandomDeriverThe field for theaquiferRandomrecord component.private final longThe field for thelegacyWorldSeedrecord component.The field for thenoiseIntancesrecord component.private final Registry<DoublePerlinNoiseSampler.NoiseParameters>The field for thenoiseParametersRegistryrecord component.private final RandomDeriverThe field for theoreRandomrecord component.private final RandomDeriverThe field for therandomrecord component.private final Map<Identifier,RandomDeriver> The field for therandomDeriversrecord component.private final NoiseRouterThe field for therouterrecord component.private final MultiNoiseUtil.MultiNoiseSamplerThe field for thesamplerrecord component.private final SurfaceBuilderThe field for thesurfaceBuilderrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNoiseConfig(RandomDeriver randomDeriver, long long2, Registry<DoublePerlinNoiseSampler.NoiseParameters> registry, NoiseRouter noiseRouter, MultiNoiseUtil.MultiNoiseSampler multiNoiseSampler, SurfaceBuilder surfaceBuilder, RandomDeriver randomDeriver2, RandomDeriver randomDeriver3, Map<RegistryKey<DoublePerlinNoiseSampler.NoiseParameters>, DoublePerlinNoiseSampler> map, Map<Identifier, RandomDeriver> map2) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaquiferRandomrecord component.static NoiseConfigcreate(DynamicRegistryManager dynamicRegistryManager, RegistryKey<ChunkGeneratorSettings> chunkGeneratorSettingsKey, long legacyWorldSeed) static NoiseConfigcreate(ChunkGeneratorSettings chunkGeneratorSettings, Registry<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersRegistry, long legacyWorldSeed) final booleanIndicates whether some other object is "equal to" this one.getOrCreateSampler(RegistryKey<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersKey) final inthashCode()Returns a hash code value for this object.longReturns the value of thelegacyWorldSeedrecord component.Returns the value of thenoiseIntancesrecord component.Returns the value of thenoiseParametersRegistryrecord component.Returns the value of theoreRandomrecord component.random()Returns the value of therandomrecord component.Returns the value of therandomDeriversrecord component.router()Returns the value of therouterrecord component.sampler()Returns the value of thesamplerrecord component.Returns the value of thesurfaceBuilderrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
random
The field for therandomrecord component. -
legacyWorldSeed
private final long legacyWorldSeedThe field for thelegacyWorldSeedrecord component. -
noiseParametersRegistry
The field for thenoiseParametersRegistryrecord component. -
router
The field for therouterrecord component. -
sampler
The field for thesamplerrecord component. -
surfaceBuilder
The field for thesurfaceBuilderrecord component. -
aquiferRandom
The field for theaquiferRandomrecord component. -
oreRandom
The field for theoreRandomrecord component. -
noiseIntances
private final Map<RegistryKey<DoublePerlinNoiseSampler.NoiseParameters>,DoublePerlinNoiseSampler> noiseIntancesThe field for thenoiseIntancesrecord component. -
randomDerivers
The field for therandomDeriversrecord component.
-
-
Constructor Details
-
NoiseConfig
@Deprecated public NoiseConfig(RandomDeriver randomDeriver, long long2, Registry<DoublePerlinNoiseSampler.NoiseParameters> registry, NoiseRouter noiseRouter, MultiNoiseUtil.MultiNoiseSampler multiNoiseSampler, SurfaceBuilder surfaceBuilder, RandomDeriver randomDeriver2, RandomDeriver randomDeriver3, Map<RegistryKey<DoublePerlinNoiseSampler.NoiseParameters>, DoublePerlinNoiseSampler> map, Map<Identifier, RandomDeriver> map2) Deprecated.
-
-
Method Details
-
create
public static NoiseConfig create(DynamicRegistryManager dynamicRegistryManager, RegistryKey<ChunkGeneratorSettings> chunkGeneratorSettingsKey, long legacyWorldSeed) - Mappings:
Namespace Name Mixin selector official aLcwf;a(Lhe;Lyz;J)Lcwf;intermediary method_41557Lnet/minecraft/class_7138;method_41557(Lnet/minecraft/class_5455;Lnet/minecraft/class_5321;J)Lnet/minecraft/class_7138;named createLnet/minecraft/world/gen/noise/NoiseConfig;create(Lnet/minecraft/util/registry/DynamicRegistryManager;Lnet/minecraft/util/registry/RegistryKey;J)Lnet/minecraft/world/gen/noise/NoiseConfig;
-
create
public static NoiseConfig create(ChunkGeneratorSettings chunkGeneratorSettings, Registry<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersRegistry, long legacyWorldSeed) - Mappings:
Namespace Name Mixin selector official aLcwf;a(Lcvt;Lhd;J)Lcwf;intermediary method_41556Lnet/minecraft/class_7138;method_41556(Lnet/minecraft/class_5284;Lnet/minecraft/class_2378;J)Lnet/minecraft/class_7138;named createLnet/minecraft/world/gen/noise/NoiseConfig;create(Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;Lnet/minecraft/util/registry/Registry;J)Lnet/minecraft/world/gen/noise/NoiseConfig;
-
getOrCreateSampler
public DoublePerlinNoiseSampler getOrCreateSampler(RegistryKey<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersKey) - Mappings:
Namespace Name Mixin selector official aLcwf;a(Lyz;)Ldju;intermediary method_41558Lnet/minecraft/class_7138;method_41558(Lnet/minecraft/class_5321;)Lnet/minecraft/class_5216;named getOrCreateSamplerLnet/minecraft/world/gen/noise/NoiseConfig;getOrCreateSampler(Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/util/math/noise/DoublePerlinNoiseSampler;
-
getOrCreateRandomDeriver
- Mappings:
Namespace Name Mixin selector official aLcwf;a(Lza;)Lcwd;intermediary method_41560Lnet/minecraft/class_7138;method_41560(Lnet/minecraft/class_2960;)Lnet/minecraft/class_6574;named getOrCreateRandomDeriverLnet/minecraft/world/gen/noise/NoiseConfig;getOrCreateRandomDeriver(Lnet/minecraft/util/Identifier;)Lnet/minecraft/world/gen/random/RandomDeriver;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
random
Returns the value of therandomrecord component.- Returns:
- the value of the
randomrecord component
-
legacyWorldSeed
public long legacyWorldSeed()Returns the value of thelegacyWorldSeedrecord component.- Returns:
- the value of the
legacyWorldSeedrecord component
-
noiseParametersRegistry
Returns the value of thenoiseParametersRegistryrecord component.- Returns:
- the value of the
noiseParametersRegistryrecord component
-
router
Returns the value of therouterrecord component.- Returns:
- the value of the
routerrecord component
-
sampler
Returns the value of thesamplerrecord component.- Returns:
- the value of the
samplerrecord component
-
surfaceBuilder
Returns the value of thesurfaceBuilderrecord component.- Returns:
- the value of the
surfaceBuilderrecord component
-
aquiferRandom
Returns the value of theaquiferRandomrecord component.- Returns:
- the value of the
aquiferRandomrecord component
-
oreRandom
Returns the value of theoreRandomrecord component.- Returns:
- the value of the
oreRandomrecord component
-
noiseIntances
public Map<RegistryKey<DoublePerlinNoiseSampler.NoiseParameters>,DoublePerlinNoiseSampler> noiseIntances()Returns the value of thenoiseIntancesrecord component.- Returns:
- the value of the
noiseIntancesrecord component
-
randomDerivers
Returns the value of therandomDeriversrecord component.- Returns:
- the value of the
randomDeriversrecord component
-