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/ChunkGeneratorSettingsintermediary net/minecraft/class_5284official dzdnamed generationShapeConfigintermediary comp_474official jnamed defaultBlockintermediary comp_475official knamed defaultFluidintermediary comp_476official lnamed noiseRouterintermediary comp_477official mnamed surfaceRuleintermediary comp_478official nnamed spawnTargetintermediary comp_538official onamed seaLevelintermediary comp_479official pnamed mobGenerationDisabledintermediary comp_480official qnamed aquifersintermediary comp_481official rnamed oreVeinsintermediary comp_482official snamed usesLegacyRandomintermediary comp_483official t
-
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.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 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) -
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, 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
-
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. -
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 aLdzd;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 bLdzd;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 cLdzd;c:Lakq;
-
LARGE_BIOMES
- Mappings:
Namespace Name Mixin selector named LARGE_BIOMESLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;LARGE_BIOMES:Lnet/minecraft/registry/RegistryKey;intermediary field_35051Lnet/minecraft/class_5284;field_35051:Lnet/minecraft/class_5321;official dLdzd;d:Lakq;
-
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 eLdzd;e:Lakq;
-
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 fLdzd;f:Lakq;
-
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 gLdzd;g:Lakq;
-
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 hLdzd;h:Lakq;
-
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 iLdzd;i:Lakq;
-
-
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) - 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)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;IZZZZ)Vofficial <init>Ldzd;<init>(Ldzg;Ldtc;Ldtc;Ldze;Ldzp$o;Ljava/util/List;IZZZZ)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 aLdzd;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 bLdzd;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 dLdzd;d()Ldzx$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 aLdzd;a(Lqq;)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 bLdzd;b(Lqq;)Ldzd;
-
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 cLdzd;c(Lqq;)Ldzd;
-
createSurfaceSettings
private static ChunkGeneratorSettings createSurfaceSettings(Registerable<?> registerable, boolean amplified, boolean largeBiomes) - Mappings:
Namespace Name Mixin selector named createSurfaceSettingsLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createSurfaceSettings(Lnet/minecraft/registry/Registerable;ZZ)Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;intermediary method_30643Lnet/minecraft/class_5284;method_30643(Lnet/minecraft/class_7891;ZZ)Lnet/minecraft/class_5284;official aLdzd;a(Lqq;ZZ)Ldzd;
-
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 dLdzd;d(Lqq;)Ldzd;
-
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 eLdzd;e(Lqq;)Ldzd;
-
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 eLdzd;e()Ldzd;
-
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
-