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-horizontalSize-verticalSize-
public record GenerationShapeConfig(int minimumY, int height, int horizontalSize, int verticalSize)
extends Record
- Mappings:
Namespace Name official dhpintermediary net/minecraft/class_5309named net/minecraft/world/gen/chunk/GenerationShapeConfigofficial gintermediary comp_173named minimumYofficial hintermediary comp_174named heightofficial iintermediary comp_178named horizontalSizeofficial jintermediary comp_179named verticalSize
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final GenerationShapeConfigstatic final com.mojang.serialization.Codec<GenerationShapeConfig>protected static final GenerationShapeConfigprotected static final GenerationShapeConfigprivate final intThe field for theheightrecord component.private final intThe field for thehorizontalSizerecord component.private final intThe field for theminimumYrecord component.protected static final GenerationShapeConfigprotected static final GenerationShapeConfigprivate final intThe field for theverticalSizerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.serialization.DataResult<GenerationShapeConfig>checkHeight(GenerationShapeConfig config) static GenerationShapeConfigcreate(int minimumY, int height, int horizontalSize, int verticalSize) 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.intintReturns the value of thehorizontalSizerecord component.intminimumY()Returns the value of theminimumYrecord component.final StringtoString()Returns a string representation of this record class.trimHeight(HeightLimitView world) intintReturns 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. -
horizontalSize
private final int horizontalSizeThe field for thehorizontalSizerecord component. -
verticalSize
private final int verticalSizeThe field for theverticalSizerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLdhp;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;
-
SURFACE
- Mappings:
Namespace Name Mixin selector official bLdhp;b:Ldhp;intermediary field_38253Lnet/minecraft/class_5309;field_38253:Lnet/minecraft/class_5309;named SURFACELnet/minecraft/world/gen/chunk/GenerationShapeConfig;SURFACE:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
-
NETHER
- Mappings:
Namespace Name Mixin selector official cLdhp;c:Ldhp;intermediary field_37138Lnet/minecraft/class_5309;field_37138:Lnet/minecraft/class_5309;named NETHERLnet/minecraft/world/gen/chunk/GenerationShapeConfig;NETHER:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
-
END
- Mappings:
Namespace Name Mixin selector official dLdhp;d:Ldhp;intermediary field_37139Lnet/minecraft/class_5309;field_37139:Lnet/minecraft/class_5309;named ENDLnet/minecraft/world/gen/chunk/GenerationShapeConfig;END:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
-
CAVES
- Mappings:
Namespace Name Mixin selector official eLdhp;e:Ldhp;intermediary field_37140Lnet/minecraft/class_5309;field_37140:Lnet/minecraft/class_5309;named CAVESLnet/minecraft/world/gen/chunk/GenerationShapeConfig;CAVES:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
-
FLOATING_ISLANDS
- Mappings:
Namespace Name Mixin selector official fLdhp;f:Ldhp;intermediary field_37141Lnet/minecraft/class_5309;field_37141:Lnet/minecraft/class_5309;named FLOATING_ISLANDSLnet/minecraft/world/gen/chunk/GenerationShapeConfig;FLOATING_ISLANDS:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
-
-
Constructor Details
-
GenerationShapeConfig
public GenerationShapeConfig(int minimumY, int height, int int2, int int3) - Mappings:
Namespace Name Mixin selector official <init>Ldhp;<init>(IIII)Vintermediary <init>Lnet/minecraft/class_5309;<init>(IIII)Vnamed <init>Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;<init>(IIII)V
-
-
Method Details
-
checkHeight
private static com.mojang.serialization.DataResult<GenerationShapeConfig> checkHeight(GenerationShapeConfig config) - Mappings:
Namespace Name Mixin selector official aLdhp;a(Ldhp;)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, int horizontalSize, int verticalSize) - Mappings:
Namespace Name Mixin selector official aLdhp;a(IIII)Ldhp;intermediary method_32994Lnet/minecraft/class_5309;method_32994(IIII)Lnet/minecraft/class_5309;named createLnet/minecraft/world/gen/chunk/GenerationShapeConfig;create(IIII)Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
-
verticalCellBlockCount
public int verticalCellBlockCount()- Mappings:
Namespace Name Mixin selector official aLdhp;a()Iintermediary method_39545Lnet/minecraft/class_5309;method_39545()Inamed verticalCellBlockCountLnet/minecraft/world/gen/chunk/GenerationShapeConfig;verticalCellBlockCount()I
-
horizontalCellBlockCount
public int horizontalCellBlockCount()- Mappings:
Namespace Name Mixin selector official bLdhp;b()Iintermediary method_39546Lnet/minecraft/class_5309;method_39546()Inamed horizontalCellBlockCountLnet/minecraft/world/gen/chunk/GenerationShapeConfig;horizontalCellBlockCount()I
-
trimHeight
- Mappings:
Namespace Name Mixin selector official aLdhp;a(Lcmm;)Ldhp;intermediary method_42368Lnet/minecraft/class_5309;method_42368(Lnet/minecraft/class_5539;)Lnet/minecraft/class_5309;named trimHeightLnet/minecraft/world/gen/chunk/GenerationShapeConfig;trimHeight(Lnet/minecraft/world/HeightLimitView;)Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
-
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. All components in this record class 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
-
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
-