Package net.minecraft.world.gen.chunk
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 csmintermediary net/minecraft/class_5309named net/minecraft/world/gen/chunk/GenerationShapeConfigofficial bintermediary comp_173named minimumYofficial cintermediary comp_174named heightofficial dintermediary comp_175named samplingofficial eintermediary comp_176named topSlideofficial fintermediary comp_177named bottomSlideofficial gintermediary comp_178named horizontalSizeofficial hintermediary comp_179named verticalSizeofficial iintermediary comp_180named densityFactorofficial jintermediary comp_181named densityOffsetofficial kintermediary comp_182named islandNoiseOverrideofficial lintermediary comp_183named amplifiedofficial mintermediary comp_184named useLegacyRandom
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theamplifiedrecord component.private final SlideConfigThe field for thebottomSliderecord component.static final com.mojang.serialization.Codec<GenerationShapeConfig>private final doubleThe field for thedensityFactorrecord component.private final doubleThe field for thedensityOffsetrecord component.private final intThe field for theheightrecord component.private final intThe field for thehorizontalSizerecord component.private final booleanThe field for theislandNoiseOverriderecord component.private final intThe field for theminimumYrecord component.private final NoiseSamplingConfigThe field for thesamplingrecord component.private final SlideConfigThe field for thetopSliderecord component.private final booleanThe field for theuseLegacyRandomrecord component.private final intThe field for theverticalSizerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGenerationShapeConfig(int minimumY, int height, NoiseSamplingConfig sampling, SlideConfig topSlide, SlideConfig bottomSlide, int horizontalSize, int verticalSize, double densityFactor, double densityOffset, boolean simplexSurfaceNoise, boolean randomDensityOffset, boolean islandNoiseOverride) -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Returns the value of thebottomSliderecord component.private static com.mojang.serialization.DataResult<GenerationShapeConfig>checkHeight(GenerationShapeConfig config) static GenerationShapeConfigcreate(int minimumY, int height, NoiseSamplingConfig sampling, SlideConfig topSlide, SlideConfig bottomSlide, int horizontalSize, int verticalSize, double densityFactor, double densityOffset, boolean simplexSurfaceNoise, boolean randomDensityOffset, boolean islandNoiseOverride) doubleReturns the value of thedensityFactorrecord component.doubleReturns the value of thedensityOffsetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.intReturns the value of thehorizontalSizerecord component.booleanDeprecated.intminimumY()Returns the value of theminimumYrecord component.sampling()Returns the value of thesamplingrecord component.topSlide()Returns the value of thetopSliderecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseLegacyRandomrecord component.intReturns the value of theverticalSizerecord component.
-
Field Details
-
minimumY
private final int minimumYThe field for theminimumYrecord component. -
height
private final int heightThe field for theheightrecord component. -
sampling
The field for thesamplingrecord component. -
topSlide
The field for thetopSliderecord component. -
bottomSlide
The field for thebottomSliderecord component. -
horizontalSize
private final int horizontalSizeThe field for thehorizontalSizerecord component. -
verticalSize
private final int verticalSizeThe field for theverticalSizerecord component. -
densityFactor
private final double densityFactorThe field for thedensityFactorrecord component. -
densityOffset
private final double densityOffsetThe field for thedensityOffsetrecord component. -
islandNoiseOverride
private final boolean islandNoiseOverrideThe field for theislandNoiseOverriderecord component. -
amplified
private final boolean amplifiedThe field for theamplifiedrecord component. -
useLegacyRandom
private final boolean useLegacyRandomThe field for theuseLegacyRandomrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLcsm;a:Lcom/mojang/serialization/Codec;intermediary field_24804Lnet/minecraft/class_5309;field_24804:Lcom/mojang/serialization/Codec;named CODECLnet/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)Vintermediary <init>Lnet/minecraft/class_5309;<init>(IILnet/minecraft/class_5308;Lnet/minecraft/class_5310;Lnet/minecraft/class_5310;IIDDZZZ)Vnamed <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 aLcsm;a(Lcsm;)Lcom/mojang/serialization/DataResult;intermediary method_32995Lnet/minecraft/class_5309;method_32995(Lnet/minecraft/class_5309;)Lcom/mojang/serialization/DataResult;named checkHeightLnet/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 aLcsm;a(IILcsl;Lcsn;Lcsn;IIDDZZZ)Lcsm;intermediary method_32994Lnet/minecraft/class_5309;method_32994(IILnet/minecraft/class_5308;Lnet/minecraft/class_5310;Lnet/minecraft/class_5310;IIDDZZZ)Lnet/minecraft/class_5309;named createLnet/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.Returns the value of theislandNoiseOverriderecord component.- Returns:
- the value of the
islandNoiseOverriderecord component
-
amplified
Deprecated.Returns the value of theamplifiedrecord component.- Returns:
- the value of the
amplifiedrecord component
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
minimumY
public int minimumY()Returns the value of theminimumYrecord component.- Returns:
- the value of the
minimumYrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
sampling
Returns the value of thesamplingrecord component.- Returns:
- the value of the
samplingrecord component
-
topSlide
Returns the value of thetopSliderecord component.- Returns:
- the value of the
topSliderecord component
-
bottomSlide
Returns the value of thebottomSliderecord component.- Returns:
- the value of the
bottomSliderecord component
-
horizontalSize
public int horizontalSize()Returns the value of thehorizontalSizerecord component.- Returns:
- the value of the
horizontalSizerecord component
-
verticalSize
public int verticalSize()Returns the value of theverticalSizerecord component.- Returns:
- the value of the
verticalSizerecord component
-
densityFactor
public double densityFactor()Returns the value of thedensityFactorrecord component.- Returns:
- the value of the
densityFactorrecord component
-
densityOffset
public double densityOffset()Returns the value of thedensityOffsetrecord component.- Returns:
- the value of the
densityOffsetrecord component
-
useLegacyRandom
public boolean useLegacyRandom()Returns the value of theuseLegacyRandomrecord component.- Returns:
- the value of the
useLegacyRandomrecord component
-