记录类 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
  • 字段详细资料

  • 构造器详细资料

    • 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)
      创建 NoiseGeneratorSettings 记录类的实例。
      参数:
      noiseSettings - noiseSettings 记录组件的值
      defaultBlock - defaultBlock 记录组件的值
      defaultFluid - defaultFluid 记录组件的值
      noiseRouter - noiseRouter 记录组件的值
      surfaceRule - surfaceRule 记录组件的值
      spawnTarget - spawnTarget 记录组件的值
      seaLevel - seaLevel 记录组件的值
      disableMobGeneration - disableMobGeneration 记录组件的值
      aquifersEnabled - aquifersEnabled 记录组件的值
      oreVeinsEnabled - oreVeinsEnabled 记录组件的值
      useLegacyRandomSource - useLegacyRandomSource 记录组件的值
  • 方法详细资料

    • isAquifersEnabled

      public boolean isAquifersEnabled()
    • getRandomSource

      public WorldgenRandom.Algorithm getRandomSource()
    • bootstrap

      public static void bootstrap(BootstrapContext<NoiseGeneratorSettings> p_321686_)
    • end

      public static NoiseGeneratorSettings end(BootstrapContext<?> p_321661_)
    • nether

      public static NoiseGeneratorSettings nether(BootstrapContext<?> p_321619_)
    • overworld

      public static NoiseGeneratorSettings overworld(BootstrapContext<?> p_321795_, boolean p_256427_, boolean p_256318_)
    • caves

      public static NoiseGeneratorSettings caves(BootstrapContext<?> p_321694_)
    • floatingIslands

      public static NoiseGeneratorSettings floatingIslands(BootstrapContext<?> p_321614_)
    • dummy

      public static NoiseGeneratorSettings dummy()
    • toString

      public final String toString()
      返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。
      指定者:
      toString 在类中 Record
      返回:
      此对象的字符串表示形式
    • hashCode

      public final int hashCode()
      返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。
      指定者:
      hashCode 在类中 Record
      返回:
      此对象的哈希代码值
    • equals

      public final boolean equals(Object o)
      指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用 Objects::equals(Object,Object) 对参考组件进行比较;使用 '==' 对基元组件进行比较
      指定者:
      equals 在类中 Record
      参数:
      o - 要与之进行比较的对象
      返回:
      如果此对象与 o 参数相同,则为 true;否则为 false
    • noiseSettings

      public NoiseSettings noiseSettings()
      返回 noiseSettings 记录组件的值。
      返回:
      noiseSettings 记录组件的值
    • defaultBlock

      public BlockState defaultBlock()
      返回 defaultBlock 记录组件的值。
      返回:
      defaultBlock 记录组件的值
    • defaultFluid

      public BlockState defaultFluid()
      返回 defaultFluid 记录组件的值。
      返回:
      defaultFluid 记录组件的值
    • noiseRouter

      public NoiseRouter noiseRouter()
      返回 noiseRouter 记录组件的值。
      返回:
      noiseRouter 记录组件的值
    • surfaceRule

      public SurfaceRules.RuleSource surfaceRule()
      返回 surfaceRule 记录组件的值。
      返回:
      surfaceRule 记录组件的值
    • spawnTarget

      public List<Climate.ParameterPoint> spawnTarget()
      返回 spawnTarget 记录组件的值。
      返回:
      spawnTarget 记录组件的值
    • seaLevel

      public int seaLevel()
      返回 seaLevel 记录组件的值。
      返回:
      seaLevel 记录组件的值
    • disableMobGeneration

      @Deprecated public boolean disableMobGeneration()
      已过时。
      返回 disableMobGeneration 记录组件的值。
      返回:
      disableMobGeneration 记录组件的值
    • aquifersEnabled

      public boolean aquifersEnabled()
      返回 aquifersEnabled 记录组件的值。
      返回:
      aquifersEnabled 记录组件的值
    • oreVeinsEnabled

      public boolean oreVeinsEnabled()
      返回 oreVeinsEnabled 记录组件的值。
      返回:
      oreVeinsEnabled 记录组件的值
    • useLegacyRandomSource

      public boolean useLegacyRandomSource()
      返回 useLegacyRandomSource 记录组件的值。
      返回:
      useLegacyRandomSource 记录组件的值