Record Class ChunkGeneratorSettings

java.lang.Object
java.lang.Record
net.minecraft.world.gen.chunk.ChunkGeneratorSettings
Record Components:
generationShapeConfig -
defaultBlock -
defaultFluid -
noiseRouter -
surfaceRule -
seaLevel -
mobGenerationDisabled -
aquifers -
oreVeins -
usesLegacyRandom -

public record ChunkGeneratorSettings(GenerationShapeConfig generationShapeConfig, BlockState defaultBlock, BlockState defaultFluid, SimpleNoiseRouter noiseRouter, MaterialRules.MaterialRule surfaceRule, int seaLevel, boolean mobGenerationDisabled, boolean aquifers, boolean oreVeins, boolean usesLegacyRandom) extends Record
Mappings:
Namespace Name
official cub
intermediary net/minecraft/class_5284
named net/minecraft/world/gen/chunk/ChunkGeneratorSettings
official j
intermediary comp_474
named generationShapeConfig
official k
intermediary comp_475
named defaultBlock
official l
intermediary comp_476
named defaultFluid
official m
intermediary comp_477
named noiseRouter
official n
intermediary comp_478
named surfaceRule
official o
intermediary comp_479
named seaLevel
official p
intermediary comp_480
named mobGenerationDisabled
official q
intermediary comp_481
named aquifers
official r
intermediary comp_482
named oreVeins
official s
intermediary comp_483
named usesLegacyRandom
  • Field Details

    • generationShapeConfig

      private final GenerationShapeConfig generationShapeConfig
      The field for the generationShapeConfig record component.
    • defaultBlock

      private final BlockState defaultBlock
      The field for the defaultBlock record component.
    • defaultFluid

      private final BlockState defaultFluid
      The field for the defaultFluid record component.
    • noiseRouter

      private final SimpleNoiseRouter noiseRouter
      The field for the noiseRouter record component.
    • surfaceRule

      private final MaterialRules.MaterialRule surfaceRule
      The field for the surfaceRule record component.
    • seaLevel

      private final int seaLevel
      The field for the seaLevel record component.
    • mobGenerationDisabled

      private final boolean mobGenerationDisabled
      The field for the mobGenerationDisabled record component.
    • aquifers

      private final boolean aquifers
      The field for the aquifers record component.
    • oreVeins

      private final boolean oreVeins
      The field for the oreVeins record component.
    • usesLegacyRandom

      private final boolean usesLegacyRandom
      The field for the usesLegacyRandom record component.
    • CODEC

      public static final com.mojang.serialization.Codec<ChunkGeneratorSettings> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lcub;a:Lcom/mojang/serialization/Codec;
      intermediary field_24780 Lnet/minecraft/class_5284;field_24780:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/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
      official b Lcub;b:Lcom/mojang/serialization/Codec;
      intermediary field_24781 Lnet/minecraft/class_5284;field_24781:Lcom/mojang/serialization/Codec;
      named REGISTRY_CODEC Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;REGISTRY_CODEC:Lcom/mojang/serialization/Codec;
    • OVERWORLD

      public static final RegistryKey<ChunkGeneratorSettings> OVERWORLD
      Mappings:
      Namespace Name Mixin selector
      official c Lcub;c:Lys;
      intermediary field_26355 Lnet/minecraft/class_5284;field_26355:Lnet/minecraft/class_5321;
      named OVERWORLD Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;OVERWORLD:Lnet/minecraft/util/registry/RegistryKey;
    • LARGE_BIOMES

      public static final RegistryKey<ChunkGeneratorSettings> LARGE_BIOMES
      Mappings:
      Namespace Name Mixin selector
      official d Lcub;d:Lys;
      intermediary field_35051 Lnet/minecraft/class_5284;field_35051:Lnet/minecraft/class_5321;
      named LARGE_BIOMES Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;LARGE_BIOMES:Lnet/minecraft/util/registry/RegistryKey;
    • AMPLIFIED

      public static final RegistryKey<ChunkGeneratorSettings> AMPLIFIED
      Mappings:
      Namespace Name Mixin selector
      official e Lcub;e:Lys;
      intermediary field_26356 Lnet/minecraft/class_5284;field_26356:Lnet/minecraft/class_5321;
      named AMPLIFIED Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;AMPLIFIED:Lnet/minecraft/util/registry/RegistryKey;
    • NETHER

      public static final RegistryKey<ChunkGeneratorSettings> NETHER
      Mappings:
      Namespace Name Mixin selector
      official f Lcub;f:Lys;
      intermediary field_26357 Lnet/minecraft/class_5284;field_26357:Lnet/minecraft/class_5321;
      named NETHER Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;NETHER:Lnet/minecraft/util/registry/RegistryKey;
    • END

      public static final RegistryKey<ChunkGeneratorSettings> END
      Mappings:
      Namespace Name Mixin selector
      official g Lcub;g:Lys;
      intermediary field_26358 Lnet/minecraft/class_5284;field_26358:Lnet/minecraft/class_5321;
      named END Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;END:Lnet/minecraft/util/registry/RegistryKey;
    • CAVES

      public static final RegistryKey<ChunkGeneratorSettings> CAVES
      Mappings:
      Namespace Name Mixin selector
      official h Lcub;h:Lys;
      intermediary field_26359 Lnet/minecraft/class_5284;field_26359:Lnet/minecraft/class_5321;
      named CAVES Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;CAVES:Lnet/minecraft/util/registry/RegistryKey;
    • FLOATING_ISLANDS

      public static final RegistryKey<ChunkGeneratorSettings> FLOATING_ISLANDS
      Mappings:
      Namespace Name Mixin selector
      official i Lcub;i:Lys;
      intermediary field_26360 Lnet/minecraft/class_5284;field_26360:Lnet/minecraft/class_5321;
      named FLOATING_ISLANDS Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;FLOATING_ISLANDS:Lnet/minecraft/util/registry/RegistryKey;
  • Constructor Details

    • ChunkGeneratorSettings

      public ChunkGeneratorSettings(GenerationShapeConfig generationShapeConfig, BlockState blockState, BlockState blockState2, SimpleNoiseRouter simpleNoiseRouter, MaterialRules.MaterialRule surfaceRule, int seaLevel, boolean mobGenerationDisabled, boolean aquifers, boolean noiseCaves, boolean oreVeins)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcub;<init>(Lcug;Lcov;Lcov;Lcue;Lcuq$o;IZZZZ)V
      intermediary <init> Lnet/minecraft/class_5284;<init>(Lnet/minecraft/class_5309;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_7056;Lnet/minecraft/class_6686$class_6708;IZZZZ)V
      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/SimpleNoiseRouter;Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialRule;IZZZZ)V
  • Method Details

    • mobGenerationDisabled

      @Deprecated public boolean 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
      official a Lcub;a()Z
      intermediary comp_480 Lnet/minecraft/class_5284;comp_480()Z
      named mobGenerationDisabled Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;mobGenerationDisabled()Z
    • hasAquifers

      public boolean hasAquifers()
      Mappings:
      Namespace Name Mixin selector
      official b Lcub;b()Z
      intermediary method_33757 Lnet/minecraft/class_5284;method_33757()Z
      named hasAquifers Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;hasAquifers()Z
    • oreVeins

      public boolean oreVeins()
      Returns the value of the oreVeins record component.
      Returns:
      the value of the oreVeins record component
    • getRandomProvider

      public ChunkRandom.RandomProvider getRandomProvider()
      Mappings:
      Namespace Name Mixin selector
      official d Lcub;d()Lcuv$a;
      intermediary method_38999 Lnet/minecraft/class_5284;method_38999()Lnet/minecraft/class_2919$class_6675;
      named getRandomProvider Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;getRandomProvider()Lnet/minecraft/world/gen/random/ChunkRandom$RandomProvider;
    • method_41099

      public NoiseRouter method_41099(Registry<DoublePerlinNoiseSampler.NoiseParameters> registry, long long2)
      Mappings:
      Namespace Name Mixin selector
      official a Lcub;a(Lhb;J)Lcuc;
      intermediary method_41099 Lnet/minecraft/class_5284;method_41099(Lnet/minecraft/class_2378;J)Lnet/minecraft/class_6953;
      named method_41099 Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;method_41099(Lnet/minecraft/util/registry/Registry;J)Lnet/minecraft/world/gen/noise/NoiseRouter;
    • register

      private static void register(RegistryKey<ChunkGeneratorSettings> registryKey, ChunkGeneratorSettings settings)
      Mappings:
      Namespace Name Mixin selector
      official a Lcub;a(Lys;Lcub;)V
      intermediary method_30644 Lnet/minecraft/class_5284;method_30644(Lnet/minecraft/class_5321;Lnet/minecraft/class_5284;)V
      named register Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;register(Lnet/minecraft/util/registry/RegistryKey;Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;)V
    • getInstance

      public static RegistryEntry<ChunkGeneratorSettings> getInstance()
      Mappings:
      Namespace Name Mixin selector
      official e Lcub;e()Lgs;
      intermediary method_31111 Lnet/minecraft/class_5284;method_31111()Lnet/minecraft/class_6880;
      named getInstance Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;getInstance()Lnet/minecraft/util/registry/RegistryEntry;
    • createEndSettings

      private static ChunkGeneratorSettings createEndSettings()
      Mappings:
      Namespace Name Mixin selector
      official n Lcub;n()Lcub;
      intermediary method_30642 Lnet/minecraft/class_5284;method_30642()Lnet/minecraft/class_5284;
      named createEndSettings Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createEndSettings()Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;
    • createNetherSettings

      private static ChunkGeneratorSettings createNetherSettings()
      Mappings:
      Namespace Name Mixin selector
      official o Lcub;o()Lcub;
      intermediary method_30641 Lnet/minecraft/class_5284;method_30641()Lnet/minecraft/class_5284;
      named createNetherSettings Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createNetherSettings()Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;
    • createSurfaceSettings

      private static ChunkGeneratorSettings createSurfaceSettings(boolean amplified, boolean largeBiomes)
      Mappings:
      Namespace Name Mixin selector
      official a Lcub;a(ZZ)Lcub;
      intermediary method_30643 Lnet/minecraft/class_5284;method_30643(ZZ)Lnet/minecraft/class_5284;
      named createSurfaceSettings Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createSurfaceSettings(ZZ)Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;
    • createCavesSettings

      private static ChunkGeneratorSettings createCavesSettings()
      Mappings:
      Namespace Name Mixin selector
      official p Lcub;p()Lcub;
      intermediary method_39901 Lnet/minecraft/class_5284;method_39901()Lnet/minecraft/class_5284;
      named createCavesSettings Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createCavesSettings()Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;
    • createFloatingIslandsSettings

      private static ChunkGeneratorSettings createFloatingIslandsSettings()
      Mappings:
      Namespace Name Mixin selector
      official q Lcub;q()Lcub;
      intermediary method_39902 Lnet/minecraft/class_5284;method_39902()Lnet/minecraft/class_5284;
      named createFloatingIslandsSettings Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;createFloatingIslandsSettings()Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • generationShapeConfig

      public GenerationShapeConfig generationShapeConfig()
      Returns the value of the generationShapeConfig record component.
      Returns:
      the value of the generationShapeConfig record component
    • defaultBlock

      public BlockState defaultBlock()
      Returns the value of the defaultBlock record component.
      Returns:
      the value of the defaultBlock record component
    • defaultFluid

      public BlockState defaultFluid()
      Returns the value of the defaultFluid record component.
      Returns:
      the value of the defaultFluid record component
    • noiseRouter

      public SimpleNoiseRouter noiseRouter()
      Returns the value of the noiseRouter record component.
      Returns:
      the value of the noiseRouter record component
    • surfaceRule

      public MaterialRules.MaterialRule surfaceRule()
      Returns the value of the surfaceRule record component.
      Returns:
      the value of the surfaceRule record component
    • seaLevel

      public int seaLevel()
      Returns the value of the seaLevel record component.
      Returns:
      the value of the seaLevel record component
    • aquifers

      public boolean aquifers()
      Returns the value of the aquifers record component.
      Returns:
      the value of the aquifers record component
    • usesLegacyRandom

      public boolean usesLegacyRandom()
      Returns the value of the usesLegacyRandom record component.
      Returns:
      the value of the usesLegacyRandom record component