Record Class GenerationShapeConfig

java.lang.Object
java.lang.Record
net.minecraft.world.gen.chunk.GenerationShapeConfig
Record Components:
minimumY -
height -
sampling -
topSlide -
bottomSlide -
horizontalSize -
verticalSize -
densityFactor -
densityOffset -
islandNoiseOverride -
amplified -
useLegacyRandom -

public record GenerationShapeConfig(int minimumY, int height, NoiseSamplingConfig sampling, SlideConfig topSlide, SlideConfig bottomSlide, int horizontalSize, int verticalSize, double densityFactor, double densityOffset, boolean islandNoiseOverride, boolean amplified, boolean useLegacyRandom) extends Record
Mappings:
Namespace Name
official csm
intermediary net/minecraft/class_5309
named net/minecraft/world/gen/chunk/GenerationShapeConfig
official b
intermediary comp_173
named minimumY
official c
intermediary comp_174
named height
official d
intermediary comp_175
named sampling
official e
intermediary comp_176
named topSlide
official f
intermediary comp_177
named bottomSlide
official g
intermediary comp_178
named horizontalSize
official h
intermediary comp_179
named verticalSize
official i
intermediary comp_180
named densityFactor
official j
intermediary comp_181
named densityOffset
official k
intermediary comp_182
named islandNoiseOverride
official l
intermediary comp_183
named amplified
official m
intermediary comp_184
named useLegacyRandom
  • Field Details

    • minimumY

      private final int minimumY
      The field for the minimumY record component.
    • height

      private final int height
      The field for the height record component.
    • sampling

      private final NoiseSamplingConfig sampling
      The field for the sampling record component.
    • topSlide

      private final SlideConfig topSlide
      The field for the topSlide record component.
    • bottomSlide

      private final SlideConfig bottomSlide
      The field for the bottomSlide record component.
    • horizontalSize

      private final int horizontalSize
      The field for the horizontalSize record component.
    • verticalSize

      private final int verticalSize
      The field for the verticalSize record component.
    • densityFactor

      private final double densityFactor
      The field for the densityFactor record component.
    • densityOffset

      private final double densityOffset
      The field for the densityOffset record component.
    • islandNoiseOverride

      private final boolean islandNoiseOverride
      The field for the islandNoiseOverride record component.
    • amplified

      private final boolean amplified
      The field for the amplified record component.
    • useLegacyRandom

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

      public static final com.mojang.serialization.Codec<GenerationShapeConfig> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lcsm;a:Lcom/mojang/serialization/Codec;
      intermediary field_24804 Lnet/minecraft/class_5309;field_24804:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • GenerationShapeConfig

      public GenerationShapeConfig(int minimumY, int height, NoiseSamplingConfig sampling, SlideConfig topSlide, SlideConfig bottomSlide, int horizontalSize, int verticalSize, double densityFactor, double densityOffset, boolean simplexSurfaceNoise, boolean randomDensityOffset, boolean islandNoiseOverride)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcsm;<init>(IILcsl;Lcsn;Lcsn;IIDDZZZ)V
      intermediary <init> Lnet/minecraft/class_5309;<init>(IILnet/minecraft/class_5308;Lnet/minecraft/class_5310;Lnet/minecraft/class_5310;IIDDZZZ)V
      named <init> Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;<init>(IILnet/minecraft/world/gen/chunk/NoiseSamplingConfig;Lnet/minecraft/world/gen/chunk/SlideConfig;Lnet/minecraft/world/gen/chunk/SlideConfig;IIDDZZZ)V
  • Method Details

    • checkHeight

      private static com.mojang.serialization.DataResult<GenerationShapeConfig> checkHeight(GenerationShapeConfig config)
      Mappings:
      Namespace Name Mixin selector
      official a Lcsm;a(Lcsm;)Lcom/mojang/serialization/DataResult;
      intermediary method_32995 Lnet/minecraft/class_5309;method_32995(Lnet/minecraft/class_5309;)Lcom/mojang/serialization/DataResult;
      named checkHeight Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;checkHeight(Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;)Lcom/mojang/serialization/DataResult;
    • create

      public static GenerationShapeConfig create(int minimumY, int height, NoiseSamplingConfig sampling, SlideConfig topSlide, SlideConfig bottomSlide, int horizontalSize, int verticalSize, double densityFactor, double densityOffset, boolean simplexSurfaceNoise, boolean randomDensityOffset, boolean islandNoiseOverride)
      Mappings:
      Namespace Name Mixin selector
      official a Lcsm;a(IILcsl;Lcsn;Lcsn;IIDDZZZ)Lcsm;
      intermediary method_32994 Lnet/minecraft/class_5309;method_32994(IILnet/minecraft/class_5308;Lnet/minecraft/class_5310;Lnet/minecraft/class_5310;IIDDZZZ)Lnet/minecraft/class_5309;
      named create Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;create(IILnet/minecraft/world/gen/chunk/NoiseSamplingConfig;Lnet/minecraft/world/gen/chunk/SlideConfig;Lnet/minecraft/world/gen/chunk/SlideConfig;IIDDZZZ)Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
    • islandNoiseOverride

      @Deprecated public boolean islandNoiseOverride()
      Deprecated.
      Returns the value of the islandNoiseOverride record component.
      Returns:
      the value of the islandNoiseOverride record component
    • amplified

      @Deprecated public boolean amplified()
      Deprecated.
      Returns the value of the amplified record component.
      Returns:
      the value of the amplified record component
    • 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.
    • minimumY

      public int minimumY()
      Returns the value of the minimumY record component.
      Returns:
      the value of the minimumY record component
    • height

      public int height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • sampling

      public NoiseSamplingConfig sampling()
      Returns the value of the sampling record component.
      Returns:
      the value of the sampling record component
    • topSlide

      public SlideConfig topSlide()
      Returns the value of the topSlide record component.
      Returns:
      the value of the topSlide record component
    • bottomSlide

      public SlideConfig bottomSlide()
      Returns the value of the bottomSlide record component.
      Returns:
      the value of the bottomSlide record component
    • horizontalSize

      public int horizontalSize()
      Returns the value of the horizontalSize record component.
      Returns:
      the value of the horizontalSize record component
    • verticalSize

      public int verticalSize()
      Returns the value of the verticalSize record component.
      Returns:
      the value of the verticalSize record component
    • densityFactor

      public double densityFactor()
      Returns the value of the densityFactor record component.
      Returns:
      the value of the densityFactor record component
    • densityOffset

      public double densityOffset()
      Returns the value of the densityOffset record component.
      Returns:
      the value of the densityOffset record component
    • useLegacyRandom

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