Record Class NoiseGeneratorSettings

java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.NoiseGeneratorSettings

public record NoiseGeneratorSettings(NoiseSettings noiseSettings, BlockState defaultBlock, BlockState defaultFluid, NoiseRouter noiseRouter, SurfaceRules.RuleSource surfaceRule, List<Climate.ParameterPoint> spawnTarget, int seaLevel, boolean disableMobGeneration, boolean aquifersEnabled, boolean oreVeinsEnabled, boolean useLegacyRandomSource) extends Record
  • Field Details

    • noiseSettings

      private final NoiseSettings noiseSettings
      The field for the noiseSettings 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 NoiseRouter noiseRouter
      The field for the noiseRouter record component.
    • surfaceRule

      private final SurfaceRules.RuleSource surfaceRule
      The field for the surfaceRule record component.
    • spawnTarget

      private final List<Climate.ParameterPoint> spawnTarget
      The field for the spawnTarget record component.
    • seaLevel

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

      @Deprecated private final boolean disableMobGeneration
      Deprecated.
      The field for the disableMobGeneration record component.
    • aquifersEnabled

      private final boolean aquifersEnabled
      The field for the aquifersEnabled record component.
    • oreVeinsEnabled

      private final boolean oreVeinsEnabled
      The field for the oreVeinsEnabled record component.
    • useLegacyRandomSource

      private final boolean useLegacyRandomSource
      The field for the useLegacyRandomSource record component.
    • DIRECT_CODEC

      public static final com.mojang.serialization.Codec<NoiseGeneratorSettings> DIRECT_CODEC
    • CODEC

      public static final com.mojang.serialization.Codec<Holder<NoiseGeneratorSettings>> CODEC
    • OVERWORLD

      public static final ResourceKey<NoiseGeneratorSettings> OVERWORLD
    • LARGE_BIOMES

      public static final ResourceKey<NoiseGeneratorSettings> LARGE_BIOMES
    • AMPLIFIED

      public static final ResourceKey<NoiseGeneratorSettings> AMPLIFIED
    • NETHER

      public static final ResourceKey<NoiseGeneratorSettings> NETHER
    • END

      public static final ResourceKey<NoiseGeneratorSettings> END
    • CAVES

      public static final ResourceKey<NoiseGeneratorSettings> CAVES
    • FLOATING_ISLANDS

      public static final ResourceKey<NoiseGeneratorSettings> FLOATING_ISLANDS
  • Constructor Details

    • NoiseGeneratorSettings

      public NoiseGeneratorSettings(NoiseSettings noiseSettings, BlockState defaultBlock, BlockState defaultFluid, NoiseRouter noiseRouter, SurfaceRules.RuleSource surfaceRule, List<Climate.ParameterPoint> spawnTarget, int seaLevel, @Deprecated boolean disableMobGeneration, boolean aquifersEnabled, boolean oreVeinsEnabled, boolean useLegacyRandomSource)
      Creates an instance of a NoiseGeneratorSettings record class.
      Parameters:
      noiseSettings - the value for the noiseSettings record component
      defaultBlock - the value for the defaultBlock record component
      defaultFluid - the value for the defaultFluid record component
      noiseRouter - the value for the noiseRouter record component
      surfaceRule - the value for the surfaceRule record component
      spawnTarget - the value for the spawnTarget record component
      seaLevel - the value for the seaLevel record component
      disableMobGeneration - the value for the disableMobGeneration record component
      aquifersEnabled - the value for the aquifersEnabled record component
      oreVeinsEnabled - the value for the oreVeinsEnabled record component
      useLegacyRandomSource - the value for the useLegacyRandomSource record component
  • Method Details

    • isAquifersEnabled

      public boolean isAquifersEnabled()
    • getRandomSource

      public WorldgenRandom.Algorithm getRandomSource()
    • bootstrap

      public static void bootstrap(BootstapContext<NoiseGeneratorSettings> p_256365_)
    • end

      public static NoiseGeneratorSettings end(BootstapContext<?> p_256478_)
    • nether

      public static NoiseGeneratorSettings nether(BootstapContext<?> p_256180_)
    • overworld

      public static NoiseGeneratorSettings overworld(BootstapContext<?> p_256460_, boolean p_256427_, boolean p_256318_)
    • caves

      public static NoiseGeneratorSettings caves(BootstapContext<?> p_255690_)
    • floatingIslands

      public static NoiseGeneratorSettings floatingIslands(BootstapContext<?> p_255885_)
    • dummy

      public static NoiseGeneratorSettings dummy()
    • 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 o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • noiseSettings

      public NoiseSettings noiseSettings()
      Returns the value of the noiseSettings record component.
      Returns:
      the value of the noiseSettings 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 NoiseRouter noiseRouter()
      Returns the value of the noiseRouter record component.
      Returns:
      the value of the noiseRouter record component
    • surfaceRule

      public SurfaceRules.RuleSource surfaceRule()
      Returns the value of the surfaceRule record component.
      Returns:
      the value of the surfaceRule record component
    • spawnTarget

      public List<Climate.ParameterPoint> spawnTarget()
      Returns the value of the spawnTarget record component.
      Returns:
      the value of the spawnTarget record component
    • seaLevel

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

      @Deprecated public boolean disableMobGeneration()
      Deprecated.
      Returns the value of the disableMobGeneration record component.
      Returns:
      the value of the disableMobGeneration record component
    • aquifersEnabled

      public boolean aquifersEnabled()
      Returns the value of the aquifersEnabled record component.
      Returns:
      the value of the aquifersEnabled record component
    • oreVeinsEnabled

      public boolean oreVeinsEnabled()
      Returns the value of the oreVeinsEnabled record component.
      Returns:
      the value of the oreVeinsEnabled record component
    • useLegacyRandomSource

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