Record Class NoiseGeneratorSettings.Data

java.lang.Object
java.lang.Record
dev.wyck.wrapper.level.noise.NoiseGeneratorSettings.Data
Enclosing interface:
NoiseGeneratorSettings

@AsOf("2.4.0") public static record NoiseGeneratorSettings.Data(@Nullable ResourceKey resourceKey, NoiseSettings noiseSettings, Material defaultBlock, Material defaultFluid, NoiseRouter noiseRouter, SurfaceRule surfaceRule, List<ClimatePoint> spawnTarget, int seaLevel, boolean disableMobGeneration, boolean aquifersEnabled, boolean oreVeinsEnabled, boolean useLegacyRandomSource) extends Record
Since:
2.4.0
  • Constructor Details

    • Data

      public Data(@Nullable ResourceKey resourceKey, NoiseSettings noiseSettings, Material defaultBlock, Material defaultFluid, NoiseRouter noiseRouter, SurfaceRule surfaceRule, List<ClimatePoint> spawnTarget, int seaLevel, @Deprecated boolean disableMobGeneration, boolean aquifersEnabled, boolean oreVeinsEnabled, boolean useLegacyRandomSource)
      Creates an instance of a Data record class.
      Parameters:
      resourceKey - the value for the resourceKey record component
      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

    • 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 the compare method from their corresponding wrapper classes.
      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.
    • resourceKey

      public @Nullable ResourceKey resourceKey()
      Returns the value of the resourceKey record component.
      Returns:
      the value of the resourceKey record component
    • noiseSettings

      public NoiseSettings noiseSettings()
      Returns the value of the noiseSettings record component.
      Returns:
      the value of the noiseSettings record component
    • defaultBlock

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

      public Material 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 SurfaceRule surfaceRule()
      Returns the value of the surfaceRule record component.
      Returns:
      the value of the surfaceRule record component
    • spawnTarget

      public List<ClimatePoint> 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