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-
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)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/world/gen/chunk/ChunkGeneratorSettings- intermediary - net/minecraft/class_5284- official - ecy- named - generationShapeConfig- intermediary - comp_474- official - j- named - defaultBlock- intermediary - comp_475- official - k- named - defaultFluid- intermediary - comp_476- official - l- named - noiseRouter- intermediary - comp_477- official - m- named - surfaceRule- intermediary - comp_478- official - n- named - spawnTarget- intermediary - comp_538- official - o- named - seaLevel- intermediary - comp_479- official - p- named - mobGenerationDisabled- intermediary - comp_480- official - q- named - aquifers- intermediary - comp_481- official - r- named - oreVeins- intermediary - comp_482- official - s- named - usesLegacyRandom- intermediary - comp_483- official - t
- 
Field SummaryFieldsModifier 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.static final RegistryKey<ChunkGeneratorSettings> 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 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 SummaryConstructorsConstructorDescriptionChunkGeneratorSettings(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) 
- 
Method SummaryModifier 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, boolean largeBiomes) 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.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- 
generationShapeConfigThe field for thegenerationShapeConfigrecord component.
- 
defaultBlockThe field for thedefaultBlockrecord component.
- 
defaultFluidThe field for thedefaultFluidrecord component.
- 
noiseRouterThe field for thenoiseRouterrecord component.
- 
surfaceRuleThe field for thesurfaceRulerecord component.
- 
spawnTargetThe field for thespawnTargetrecord component.
- 
seaLevelprivate final int seaLevelThe field for theseaLevelrecord component.
- 
mobGenerationDisabledprivate final boolean mobGenerationDisabledThe field for themobGenerationDisabledrecord component.
- 
aquifersprivate final boolean aquifersThe field for theaquifersrecord component.
- 
oreVeinsprivate final boolean oreVeinsThe field for theoreVeinsrecord component.
- 
usesLegacyRandomprivate final boolean usesLegacyRandomThe field for theusesLegacyRandomrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_24780- Lnet/minecraft/class_5284;field_24780:Lcom/mojang/serialization/Codec;- official - a- Lecy;a:Lcom/mojang/serialization/Codec;
 
- 
REGISTRY_CODECpublic static final com.mojang.serialization.Codec<RegistryEntry<ChunkGeneratorSettings>> REGISTRY_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - REGISTRY_CODEC- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;REGISTRY_CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_24781- Lnet/minecraft/class_5284;field_24781:Lcom/mojang/serialization/Codec;- official - b- Lecy;b:Lcom/mojang/serialization/Codec;
 
- 
OVERWORLD- Mappings:
- Namespace - Name - Mixin selector - named - OVERWORLD- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;OVERWORLD:Lnet/minecraft/registry/RegistryKey;- intermediary - field_26355- Lnet/minecraft/class_5284;field_26355:Lnet/minecraft/class_5321;- official - c- Lecy;c:Laku;
 
- 
LARGE_BIOMES- Mappings:
- Namespace - Name - Mixin selector - named - LARGE_BIOMES- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;LARGE_BIOMES:Lnet/minecraft/registry/RegistryKey;- intermediary - field_35051- Lnet/minecraft/class_5284;field_35051:Lnet/minecraft/class_5321;- official - d- Lecy;d:Laku;
 
- 
AMPLIFIED- Mappings:
- Namespace - Name - Mixin selector - named - AMPLIFIED- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;AMPLIFIED:Lnet/minecraft/registry/RegistryKey;- intermediary - field_26356- Lnet/minecraft/class_5284;field_26356:Lnet/minecraft/class_5321;- official - e- Lecy;e:Laku;
 
- 
NETHER- Mappings:
- Namespace - Name - Mixin selector - named - NETHER- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;NETHER:Lnet/minecraft/registry/RegistryKey;- intermediary - field_26357- Lnet/minecraft/class_5284;field_26357:Lnet/minecraft/class_5321;- official - f- Lecy;f:Laku;
 
- 
END- Mappings:
- Namespace - Name - Mixin selector - named - END- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;END:Lnet/minecraft/registry/RegistryKey;- intermediary - field_26358- Lnet/minecraft/class_5284;field_26358:Lnet/minecraft/class_5321;- official - g- Lecy;g:Laku;
 
- 
CAVES- Mappings:
- Namespace - Name - Mixin selector - named - CAVES- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;CAVES:Lnet/minecraft/registry/RegistryKey;- intermediary - field_26359- Lnet/minecraft/class_5284;field_26359:Lnet/minecraft/class_5321;- official - h- Lecy;h:Laku;
 
- 
FLOATING_ISLANDS- Mappings:
- Namespace - Name - Mixin selector - named - FLOATING_ISLANDS- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;FLOATING_ISLANDS:Lnet/minecraft/registry/RegistryKey;- intermediary - field_26360- Lnet/minecraft/class_5284;field_26360:Lnet/minecraft/class_5321;- official - i- Lecy;i:Laku;
 
 
- 
- 
Constructor Details- 
ChunkGeneratorSettingspublic 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) - 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;IZZZZ)V- intermediary - <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;IZZZZ)V- official - <init>- Lecy;<init>(Ledb;Ldwy;Ldwy;Lecz;Ledk$o;Ljava/util/List;IZZZZ)V
 
 
- 
- 
Method Details- 
mobGenerationDisabledDeprecated.Whether entities will be generated during chunk population.It does not control whether spawns will occur during gameplay. - Mappings:
- Namespace - Name - Mixin selector - named - mobGenerationDisabled- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;mobGenerationDisabled()Z- intermediary - comp_480- Lnet/minecraft/class_5284;comp_480()Z- official - a- Lecy;a()Z
 
- 
hasAquiferspublic boolean hasAquifers()- Mappings:
- Namespace - Name - Mixin selector - named - hasAquifers- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;hasAquifers()Z- intermediary - method_33757- Lnet/minecraft/class_5284;method_33757()Z- official - b- Lecy;b()Z
 
- 
oreVeinspublic boolean oreVeins()Returns the value of theoreVeinsrecord component.- Returns:
- the value of the oreVeinsrecord component
 
- 
getRandomProvider- Mappings:
- Namespace - Name - Mixin selector - named - getRandomProvider- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;getRandomProvider()Lnet/minecraft/util/math/random/ChunkRandom$RandomProvider;- intermediary - method_38999- Lnet/minecraft/class_5284;method_38999()Lnet/minecraft/class_2919$class_6675;- official - d- Lecy;d()Leds$a;
 
- 
bootstrappublic static void bootstrap(Registerable<ChunkGeneratorSettings> chunkGenerationSettingsRegisterable) - Mappings:
- Namespace - Name - Mixin selector - named - bootstrap- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;bootstrap(Lnet/minecraft/registry/Registerable;)V- intermediary - method_31111- Lnet/minecraft/class_5284;method_31111(Lnet/minecraft/class_7891;)V- official - a- Lecy;a(Lqe;)V
 
- 
createEndSettings- Mappings:
- Namespace - Name - Mixin selector - named - createEndSettings- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createEndSettings(Lnet/minecraft/registry/Registerable;)Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;- intermediary - method_30642- Lnet/minecraft/class_5284;method_30642(Lnet/minecraft/class_7891;)Lnet/minecraft/class_5284;- official - b- Lecy;b(Lqe;)Lecy;
 
- 
createNetherSettings- Mappings:
- Namespace - Name - Mixin selector - named - createNetherSettings- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createNetherSettings(Lnet/minecraft/registry/Registerable;)Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;- intermediary - method_30641- Lnet/minecraft/class_5284;method_30641(Lnet/minecraft/class_7891;)Lnet/minecraft/class_5284;- official - c- Lecy;c(Lqe;)Lecy;
 
- 
createSurfaceSettingsprivate static ChunkGeneratorSettings createSurfaceSettings(Registerable<?> registerable, boolean amplified, boolean largeBiomes) - Mappings:
- Namespace - Name - Mixin selector - named - createSurfaceSettings- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createSurfaceSettings(Lnet/minecraft/registry/Registerable;ZZ)Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;- intermediary - method_30643- Lnet/minecraft/class_5284;method_30643(Lnet/minecraft/class_7891;ZZ)Lnet/minecraft/class_5284;- official - a- Lecy;a(Lqe;ZZ)Lecy;
 
- 
createCavesSettings- Mappings:
- Namespace - Name - Mixin selector - named - createCavesSettings- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createCavesSettings(Lnet/minecraft/registry/Registerable;)Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;- intermediary - method_39901- Lnet/minecraft/class_5284;method_39901(Lnet/minecraft/class_7891;)Lnet/minecraft/class_5284;- official - d- Lecy;d(Lqe;)Lecy;
 
- 
createFloatingIslandsSettings- Mappings:
- Namespace - Name - Mixin selector - named - createFloatingIslandsSettings- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createFloatingIslandsSettings(Lnet/minecraft/registry/Registerable;)Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;- intermediary - method_39902- Lnet/minecraft/class_5284;method_39902(Lnet/minecraft/class_7891;)Lnet/minecraft/class_5284;- official - e- Lecy;e(Lqe;)Lecy;
 
- 
createMissingSettings- Mappings:
- Namespace - Name - Mixin selector - named - createMissingSettings- Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createMissingSettings()Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;- intermediary - method_44323- Lnet/minecraft/class_5284;method_44323()Lnet/minecraft/class_5284;- official - e- Lecy;e()Lecy;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
generationShapeConfigReturns the value of thegenerationShapeConfigrecord component.- Returns:
- the value of the generationShapeConfigrecord component
 
- 
defaultBlockReturns the value of thedefaultBlockrecord component.- Returns:
- the value of the defaultBlockrecord component
 
- 
defaultFluidReturns the value of thedefaultFluidrecord component.- Returns:
- the value of the defaultFluidrecord component
 
- 
noiseRouterReturns the value of thenoiseRouterrecord component.- Returns:
- the value of the noiseRouterrecord component
 
- 
surfaceRuleReturns the value of thesurfaceRulerecord component.- Returns:
- the value of the surfaceRulerecord component
 
- 
spawnTargetReturns the value of thespawnTargetrecord component.- Returns:
- the value of the spawnTargetrecord component
 
- 
seaLevelpublic int seaLevel()Returns the value of theseaLevelrecord component.- Returns:
- the value of the seaLevelrecord component
 
- 
aquiferspublic boolean aquifers()Returns the value of theaquifersrecord component.- Returns:
- the value of the aquifersrecord component
 
- 
usesLegacyRandompublic boolean usesLegacyRandom()Returns the value of theusesLegacyRandomrecord component.- Returns:
- the value of the usesLegacyRandomrecord component
 
 
-