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 intermediary net/minecraft/class_5284official dhmnamed net/minecraft/world/gen/chunk/ChunkGeneratorSettingsintermediary comp_474official jnamed generationShapeConfigintermediary comp_475official knamed defaultBlockintermediary comp_476official lnamed defaultFluidintermediary comp_477official mnamed noiseRouterintermediary comp_478official nnamed surfaceRuleintermediary comp_538official onamed spawnTargetintermediary comp_479official pnamed seaLevelintermediary comp_480official qnamed mobGenerationDisabledintermediary comp_481official rnamed aquifersintermediary comp_482official snamed oreVeinsintermediary comp_483official tnamed usesLegacyRandom
-
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 intermediary field_24780Lnet/minecraft/class_5284;field_24780:Lcom/mojang/serialization/Codec;official aLdhm;a:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;CODEC:Lcom/mojang/serialization/Codec;
-
REGISTRY_CODEC
public static final com.mojang.serialization.Codec<RegistryEntry<ChunkGeneratorSettings>> REGISTRY_CODEC- Mappings:
Namespace Name Mixin selector intermediary field_24781Lnet/minecraft/class_5284;field_24781:Lcom/mojang/serialization/Codec;official bLdhm;b:Lcom/mojang/serialization/Codec;named REGISTRY_CODECLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;REGISTRY_CODEC:Lcom/mojang/serialization/Codec;
-
OVERWORLD
- Mappings:
Namespace Name Mixin selector intermediary field_26355Lnet/minecraft/class_5284;field_26355:Lnet/minecraft/class_5321;official cLdhm;c:Lacp;named OVERWORLDLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;OVERWORLD:Lnet/minecraft/registry/RegistryKey;
-
LARGE_BIOMES
- Mappings:
Namespace Name Mixin selector intermediary field_35051Lnet/minecraft/class_5284;field_35051:Lnet/minecraft/class_5321;official dLdhm;d:Lacp;named LARGE_BIOMESLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;LARGE_BIOMES:Lnet/minecraft/registry/RegistryKey;
-
AMPLIFIED
- Mappings:
Namespace Name Mixin selector intermediary field_26356Lnet/minecraft/class_5284;field_26356:Lnet/minecraft/class_5321;official eLdhm;e:Lacp;named AMPLIFIEDLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;AMPLIFIED:Lnet/minecraft/registry/RegistryKey;
-
NETHER
- Mappings:
Namespace Name Mixin selector intermediary field_26357Lnet/minecraft/class_5284;field_26357:Lnet/minecraft/class_5321;official fLdhm;f:Lacp;named NETHERLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;NETHER:Lnet/minecraft/registry/RegistryKey;
-
END
- Mappings:
Namespace Name Mixin selector intermediary field_26358Lnet/minecraft/class_5284;field_26358:Lnet/minecraft/class_5321;official gLdhm;g:Lacp;named ENDLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;END:Lnet/minecraft/registry/RegistryKey;
-
CAVES
- Mappings:
Namespace Name Mixin selector intermediary field_26359Lnet/minecraft/class_5284;field_26359:Lnet/minecraft/class_5321;official hLdhm;h:Lacp;named CAVESLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;CAVES:Lnet/minecraft/registry/RegistryKey;
-
FLOATING_ISLANDS
- Mappings:
Namespace Name Mixin selector intermediary field_26360Lnet/minecraft/class_5284;field_26360:Lnet/minecraft/class_5321;official iLdhm;i:Lacp;named FLOATING_ISLANDSLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;FLOATING_ISLANDS:Lnet/minecraft/registry/RegistryKey;
-
-
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 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)Vofficial <init>Ldhm;<init>(Ldhp;Ldby;Ldby;Ldhn;Ldhy$o;Ljava/util/List;IZZZZ)Vnamed <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
-
-
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 intermediary comp_480Lnet/minecraft/class_5284;comp_480()Zofficial aLdhm;a()Znamed mobGenerationDisabledLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;mobGenerationDisabled()Z
-
hasAquifers
public boolean hasAquifers()- Mappings:
Namespace Name Mixin selector intermediary method_33757Lnet/minecraft/class_5284;method_33757()Zofficial bLdhm;b()Znamed hasAquifersLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;hasAquifers()Z
-
oreVeins
public boolean oreVeins()Returns the value of theoreVeinsrecord component.- Returns:
- the value of the
oreVeinsrecord component
-
getRandomProvider
- Mappings:
Namespace Name Mixin selector intermediary method_38999Lnet/minecraft/class_5284;method_38999()Lnet/minecraft/class_2919$class_6675;official dLdhm;d()Ldig$a;named getRandomProviderLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;getRandomProvider()Lnet/minecraft/util/math/random/ChunkRandom$RandomProvider;
-
bootstrap
public static void bootstrap(Registerable<ChunkGeneratorSettings> chunkGenerationSettingsRegisterable) - Mappings:
Namespace Name Mixin selector intermediary method_31111Lnet/minecraft/class_5284;method_31111(Lnet/minecraft/class_7891;)Vofficial aLdhm;a(Lnm;)Vnamed bootstrapLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;bootstrap(Lnet/minecraft/registry/Registerable;)V
-
createEndSettings
- Mappings:
Namespace Name Mixin selector intermediary method_30642Lnet/minecraft/class_5284;method_30642(Lnet/minecraft/class_7891;)Lnet/minecraft/class_5284;official bLdhm;b(Lnm;)Ldhm;named createEndSettingsLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createEndSettings(Lnet/minecraft/registry/Registerable;)Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;
-
createNetherSettings
- Mappings:
Namespace Name Mixin selector intermediary method_30641Lnet/minecraft/class_5284;method_30641(Lnet/minecraft/class_7891;)Lnet/minecraft/class_5284;official cLdhm;c(Lnm;)Ldhm;named createNetherSettingsLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createNetherSettings(Lnet/minecraft/registry/Registerable;)Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;
-
createSurfaceSettings
private static ChunkGeneratorSettings createSurfaceSettings(Registerable<?> registerable, boolean amplified, boolean largeBiomes) - Mappings:
Namespace Name Mixin selector intermediary method_30643Lnet/minecraft/class_5284;method_30643(Lnet/minecraft/class_7891;ZZ)Lnet/minecraft/class_5284;official aLdhm;a(Lnm;ZZ)Ldhm;named createSurfaceSettingsLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createSurfaceSettings(Lnet/minecraft/registry/Registerable;ZZ)Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;
-
createCavesSettings
- Mappings:
Namespace Name Mixin selector intermediary method_39901Lnet/minecraft/class_5284;method_39901(Lnet/minecraft/class_7891;)Lnet/minecraft/class_5284;official dLdhm;d(Lnm;)Ldhm;named createCavesSettingsLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createCavesSettings(Lnet/minecraft/registry/Registerable;)Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;
-
createFloatingIslandsSettings
- Mappings:
Namespace Name Mixin selector intermediary method_39902Lnet/minecraft/class_5284;method_39902(Lnet/minecraft/class_7891;)Lnet/minecraft/class_5284;official eLdhm;e(Lnm;)Ldhm;named createFloatingIslandsSettingsLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createFloatingIslandsSettings(Lnet/minecraft/registry/Registerable;)Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;
-
createMissingSettings
- Mappings:
Namespace Name Mixin selector intermediary method_44323Lnet/minecraft/class_5284;method_44323()Lnet/minecraft/class_5284;official eLdhm;e()Ldhm;named createMissingSettingsLnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createMissingSettings()Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;
-
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
-