Package net.minecraft.world.gen.chunk
Record Class ChunkGeneratorSettings
java.lang.Object
java.lang.Record
net.minecraft.world.gen.chunk.ChunkGeneratorSettings
- Record Components:
generationShapeConfig-defaultBlock-defaultFluid-noiseRouter-surfaceRule-spawnTarget-seaLevel-mobGenerationDisabled-aquifers-oreVeins-usesLegacyRandom-salt-
public record ChunkGeneratorSettings(GenerationShapeConfig generationShapeConfig, BlockState defaultBlock, BlockState defaultFluid, NoiseRouter noiseRouter, MaterialRules.MaterialRule surfaceRule, List<MultiNoiseUtil.NoiseHypercube> spawnTarget, int seaLevel, boolean mobGenerationDisabled, boolean aquifers, boolean oreVeins, boolean usesLegacyRandom, long salt)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/gen/chunk/ChunkGeneratorSettingsintermediary net/minecraft/class_5284official ekznamed generationShapeConfigintermediary comp_474official inamed defaultBlockintermediary comp_475official jnamed defaultFluidintermediary comp_476official knamed noiseRouterintermediary comp_477official lnamed surfaceRuleintermediary comp_478official mnamed spawnTargetintermediary comp_538official nnamed seaLevelintermediary comp_479official onamed mobGenerationDisabledintermediary comp_480official pnamed aquifersintermediary comp_481official qnamed oreVeinsintermediary comp_482official rnamed usesLegacyRandomintermediary comp_483official snamed saltintermediary comp_3965official t
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RegistryKey<ChunkGeneratorSettings> private final booleanThe field for theaquifersrecord component.static final RegistryKey<ChunkGeneratorSettings> static final com.mojang.serialization.Codec<ChunkGeneratorSettings> private final BlockStateThe field for thedefaultBlockrecord component.private final BlockStateThe field for thedefaultFluidrecord component.static final RegistryKey<ChunkGeneratorSettings> static final RegistryKey<ChunkGeneratorSettings> private final GenerationShapeConfigThe field for thegenerationShapeConfigrecord component.private final booleanThe field for themobGenerationDisabledrecord component.static final RegistryKey<ChunkGeneratorSettings> private final NoiseRouterThe field for thenoiseRouterrecord component.private final booleanThe field for theoreVeinsrecord component.static final RegistryKey<ChunkGeneratorSettings> static final com.mojang.serialization.Codec<RegistryEntry<ChunkGeneratorSettings>> private final longThe field for thesaltrecord component.private final intThe field for theseaLevelrecord component.private final List<MultiNoiseUtil.NoiseHypercube> The field for thespawnTargetrecord component.private final MaterialRules.MaterialRuleThe field for thesurfaceRulerecord component.private final booleanThe field for theusesLegacyRandomrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionChunkGeneratorSettings(GenerationShapeConfig generationShapeConfig, BlockState blockState, BlockState blockState2, NoiseRouter noiseRouter, MaterialRules.MaterialRule surfaceRule, List<MultiNoiseUtil.NoiseHypercube> list, int int2, boolean bool, boolean bool2, boolean bool3, boolean bool4, long long2) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaquifers()Returns the value of theaquifersrecord component.static voidbootstrap(Registerable<ChunkGeneratorSettings> chunkGenerationSettingsRegisterable) private static ChunkGeneratorSettingscreateCavesSettings(Registerable<?> registerable) private static ChunkGeneratorSettingscreateEndSettings(Registerable<?> registerable) private static ChunkGeneratorSettingscreateFloatingIslandsSettings(Registerable<?> registerable) static ChunkGeneratorSettingsprivate static ChunkGeneratorSettingscreateNetherSettings(Registerable<?> registerable) private static ChunkGeneratorSettingscreateSurfaceSettings(Registerable<?> registerable, boolean amplified) Returns the value of thedefaultBlockrecord component.Returns the value of thedefaultFluidrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegenerationShapeConfigrecord component.booleanfinal inthashCode()Returns a hash code value for this object.booleanDeprecated.Returns the value of thenoiseRouterrecord component.booleanoreVeins()Returns the value of theoreVeinsrecord component.longsalt()Returns the value of thesaltrecord 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 theusesLegacyRandomrecord component.
-
Field Details
-
generationShapeConfig
The field for thegenerationShapeConfigrecord component. -
defaultBlock
The field for thedefaultBlockrecord component. -
defaultFluid
The field for thedefaultFluidrecord component. -
noiseRouter
The field for thenoiseRouterrecord component. -
surfaceRule
The field for thesurfaceRulerecord component. -
spawnTarget
The field for thespawnTargetrecord component. -
seaLevel
private final int seaLevelThe field for theseaLevelrecord component. -
mobGenerationDisabled
private final boolean mobGenerationDisabledThe field for themobGenerationDisabledrecord component. -
aquifers
private final boolean aquifersThe field for theaquifersrecord component. -
oreVeins
private final boolean oreVeinsThe field for theoreVeinsrecord component. -
usesLegacyRandom
private final boolean usesLegacyRandomThe field for theusesLegacyRandomrecord component. -
salt
private final long saltThe field for thesaltrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;CODEC:Lcom/mojang/serialization/Codec;intermediary field_24780Lnet/minecraft/class_5284;field_24780:Lcom/mojang/serialization/Codec;official aLekz;a:Lcom/mojang/serialization/Codec;
-
REGISTRY_CODEC
public static final com.mojang.serialization.Codec<RegistryEntry<ChunkGeneratorSettings>> REGISTRY_CODEC- Mappings:
Namespace Name Mixin selector named REGISTRY_CODECLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;REGISTRY_CODEC:Lcom/mojang/serialization/Codec;intermediary field_24781Lnet/minecraft/class_5284;field_24781:Lcom/mojang/serialization/Codec;official bLekz;b:Lcom/mojang/serialization/Codec;
-
OVERWORLD
- Mappings:
Namespace Name Mixin selector named OVERWORLDLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;OVERWORLD:Lnet/minecraft/registry/RegistryKey;intermediary field_26355Lnet/minecraft/class_5284;field_26355:Lnet/minecraft/class_5321;official cLekz;c:Lama;
-
AMPLIFIED
- Mappings:
Namespace Name Mixin selector named AMPLIFIEDLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;AMPLIFIED:Lnet/minecraft/registry/RegistryKey;intermediary field_26356Lnet/minecraft/class_5284;field_26356:Lnet/minecraft/class_5321;official dLekz;d:Lama;
-
NETHER
- Mappings:
Namespace Name Mixin selector named NETHERLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;NETHER:Lnet/minecraft/registry/RegistryKey;intermediary field_26357Lnet/minecraft/class_5284;field_26357:Lnet/minecraft/class_5321;official eLekz;e:Lama;
-
END
- Mappings:
Namespace Name Mixin selector named ENDLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;END:Lnet/minecraft/registry/RegistryKey;intermediary field_26358Lnet/minecraft/class_5284;field_26358:Lnet/minecraft/class_5321;official fLekz;f:Lama;
-
CAVES
- Mappings:
Namespace Name Mixin selector named CAVESLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;CAVES:Lnet/minecraft/registry/RegistryKey;intermediary field_26359Lnet/minecraft/class_5284;field_26359:Lnet/minecraft/class_5321;official gLekz;g:Lama;
-
FLOATING_ISLANDS
- Mappings:
Namespace Name Mixin selector named FLOATING_ISLANDSLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;FLOATING_ISLANDS:Lnet/minecraft/registry/RegistryKey;intermediary field_26360Lnet/minecraft/class_5284;field_26360:Lnet/minecraft/class_5321;official hLekz;h:Lama;
-
-
Constructor Details
-
ChunkGeneratorSettings
public ChunkGeneratorSettings(GenerationShapeConfig generationShapeConfig, BlockState blockState, BlockState blockState2, NoiseRouter noiseRouter, MaterialRules.MaterialRule surfaceRule, List<MultiNoiseUtil.NoiseHypercube> list, int int2, boolean bool, boolean bool2, boolean bool3, boolean bool4, long long2) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;<init>(Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/gen/noise/NoiseRouter;Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialRule;Ljava/util/List;IZZZZJ)Vintermediary <init>Lnet/minecraft/class_5284;<init>(Lnet/minecraft/class_5309;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_6953;Lnet/minecraft/class_6686$class_6708;Ljava/util/List;IZZZZJ)Vofficial <init>Lekz;<init>(Lelc;Lees;Lees;Lela;Lell$o;Ljava/util/List;IZZZZJ)V
-
-
Method Details
-
mobGenerationDisabled
Deprecated.Whether entities will be generated during chunk population.It does not control whether spawns will occur during gameplay.
- Mappings:
Namespace Name Mixin selector named mobGenerationDisabledLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;mobGenerationDisabled()Zintermediary comp_480Lnet/minecraft/class_5284;comp_480()Zofficial aLekz;a()Z
-
hasAquifers
public boolean hasAquifers()- Mappings:
Namespace Name Mixin selector named hasAquifersLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;hasAquifers()Zintermediary method_33757Lnet/minecraft/class_5284;method_33757()Zofficial bLekz;b()Z
-
oreVeins
public boolean oreVeins()Returns the value of theoreVeinsrecord component.- Returns:
- the value of the
oreVeinsrecord component
-
getRandomProvider
- Mappings:
Namespace Name Mixin selector named getRandomProviderLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;getRandomProvider()Lnet/minecraft/util/math/random/ChunkRandom$RandomProvider;intermediary method_38999Lnet/minecraft/class_5284;method_38999()Lnet/minecraft/class_2919$class_6675;official dLekz;d()Lelt$a;
-
bootstrap
public static void bootstrap(Registerable<ChunkGeneratorSettings> chunkGenerationSettingsRegisterable) - Mappings:
Namespace Name Mixin selector named bootstrapLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;bootstrap(Lnet/minecraft/registry/Registerable;)Vintermediary method_31111Lnet/minecraft/class_5284;method_31111(Lnet/minecraft/class_7891;)Vofficial aLekz;a(Lqj;)V
-
createEndSettings
- Mappings:
Namespace Name Mixin selector named createEndSettingsLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createEndSettings(Lnet/minecraft/registry/Registerable;)Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;intermediary method_30642Lnet/minecraft/class_5284;method_30642(Lnet/minecraft/class_7891;)Lnet/minecraft/class_5284;official bLekz;b(Lqj;)Lekz;
-
createNetherSettings
- Mappings:
Namespace Name Mixin selector named createNetherSettingsLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createNetherSettings(Lnet/minecraft/registry/Registerable;)Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;intermediary method_30641Lnet/minecraft/class_5284;method_30641(Lnet/minecraft/class_7891;)Lnet/minecraft/class_5284;official cLekz;c(Lqj;)Lekz;
-
createSurfaceSettings
private static ChunkGeneratorSettings createSurfaceSettings(Registerable<?> registerable, boolean amplified) - Mappings:
Namespace Name Mixin selector named createSurfaceSettingsLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createSurfaceSettings(Lnet/minecraft/registry/Registerable;Z)Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;intermediary method_30643Lnet/minecraft/class_5284;method_30643(Lnet/minecraft/class_7891;Z)Lnet/minecraft/class_5284;official aLekz;a(Lqj;Z)Lekz;
-
createCavesSettings
- Mappings:
Namespace Name Mixin selector named createCavesSettingsLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createCavesSettings(Lnet/minecraft/registry/Registerable;)Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;intermediary method_39901Lnet/minecraft/class_5284;method_39901(Lnet/minecraft/class_7891;)Lnet/minecraft/class_5284;official dLekz;d(Lqj;)Lekz;
-
createFloatingIslandsSettings
- Mappings:
Namespace Name Mixin selector named createFloatingIslandsSettingsLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createFloatingIslandsSettings(Lnet/minecraft/registry/Registerable;)Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;intermediary method_39902Lnet/minecraft/class_5284;method_39902(Lnet/minecraft/class_7891;)Lnet/minecraft/class_5284;official eLekz;e(Lqj;)Lekz;
-
createMissingSettings
- Mappings:
Namespace Name Mixin selector named createMissingSettingsLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createMissingSettings()Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;intermediary method_44323Lnet/minecraft/class_5284;method_44323()Lnet/minecraft/class_5284;official eLekz;e()Lekz;
-
method_69802
- Mappings:
Namespace Name Mixin selector named method_69802Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;method_69802()Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings$class_11084;intermediary method_69802Lnet/minecraft/class_5284;method_69802()Lnet/minecraft/class_5284$class_11084;official fLekz;f()Lekz$a;
-
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 '=='. -
generationShapeConfig
Returns the value of thegenerationShapeConfigrecord component.- Returns:
- the value of the
generationShapeConfigrecord 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
-
aquifers
public boolean aquifers()Returns the value of theaquifersrecord component.- Returns:
- the value of the
aquifersrecord component
-
usesLegacyRandom
public boolean usesLegacyRandom()Returns the value of theusesLegacyRandomrecord component.- Returns:
- the value of the
usesLegacyRandomrecord component
-
salt
public long salt()Returns the value of thesaltrecord component.- Returns:
- the value of the
saltrecord component
-