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 named net/minecraft/world/gen/chunk/GenerationShapeConfigintermediary net/minecraft/class_5309official dzgnamed minimumYintermediary comp_173official gnamed heightintermediary comp_174official hnamed horizontalSizeintermediary comp_178official inamed verticalSizeintermediary comp_179official j
-
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 named CODECLnet/minecraft/world/gen/chunk/GenerationShapeConfig;CODEC:Lcom/mojang/serialization/Codec;intermediary field_24804Lnet/minecraft/class_5309;field_24804:Lcom/mojang/serialization/Codec;official aLdzg;a:Lcom/mojang/serialization/Codec;
-
SURFACE
- Mappings:
Namespace Name Mixin selector named SURFACELnet/minecraft/world/gen/chunk/GenerationShapeConfig;SURFACE:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;intermediary field_38253Lnet/minecraft/class_5309;field_38253:Lnet/minecraft/class_5309;official bLdzg;b:Ldzg;
-
NETHER
- Mappings:
Namespace Name Mixin selector named NETHERLnet/minecraft/world/gen/chunk/GenerationShapeConfig;NETHER:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;intermediary field_37138Lnet/minecraft/class_5309;field_37138:Lnet/minecraft/class_5309;official cLdzg;c:Ldzg;
-
END
- Mappings:
Namespace Name Mixin selector named ENDLnet/minecraft/world/gen/chunk/GenerationShapeConfig;END:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;intermediary field_37139Lnet/minecraft/class_5309;field_37139:Lnet/minecraft/class_5309;official dLdzg;d:Ldzg;
-
CAVES
- Mappings:
Namespace Name Mixin selector named CAVESLnet/minecraft/world/gen/chunk/GenerationShapeConfig;CAVES:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;intermediary field_37140Lnet/minecraft/class_5309;field_37140:Lnet/minecraft/class_5309;official eLdzg;e:Ldzg;
-
FLOATING_ISLANDS
- Mappings:
Namespace Name Mixin selector named FLOATING_ISLANDSLnet/minecraft/world/gen/chunk/GenerationShapeConfig;FLOATING_ISLANDS:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;intermediary field_37141Lnet/minecraft/class_5309;field_37141:Lnet/minecraft/class_5309;official fLdzg;f:Ldzg;
-
-
Constructor Details
-
GenerationShapeConfig
public GenerationShapeConfig(int minimumY, int height, int int2, int int3) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;<init>(IIII)Vintermediary <init>Lnet/minecraft/class_5309;<init>(IIII)Vofficial <init>Ldzg;<init>(IIII)V
-
-
Method Details
-
checkHeight
private static com.mojang.serialization.DataResult<GenerationShapeConfig> checkHeight(GenerationShapeConfig config) - Mappings:
Namespace Name Mixin selector named checkHeightLnet/minecraft/world/gen/chunk/GenerationShapeConfig;checkHeight(Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;)Lcom/mojang/serialization/DataResult;intermediary method_32995Lnet/minecraft/class_5309;method_32995(Lnet/minecraft/class_5309;)Lcom/mojang/serialization/DataResult;official aLdzg;a(Ldzg;)Lcom/mojang/serialization/DataResult;
-
create
public static GenerationShapeConfig create(int minimumY, int height, int horizontalSize, int verticalSize) - Mappings:
Namespace Name Mixin selector named createLnet/minecraft/world/gen/chunk/GenerationShapeConfig;create(IIII)Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;intermediary method_32994Lnet/minecraft/class_5309;method_32994(IIII)Lnet/minecraft/class_5309;official aLdzg;a(IIII)Ldzg;
-
verticalCellBlockCount
public int verticalCellBlockCount()- Mappings:
Namespace Name Mixin selector named verticalCellBlockCountLnet/minecraft/world/gen/chunk/GenerationShapeConfig;verticalCellBlockCount()Iintermediary method_39545Lnet/minecraft/class_5309;method_39545()Iofficial aLdzg;a()I
-
horizontalCellBlockCount
public int horizontalCellBlockCount()- Mappings:
Namespace Name Mixin selector named horizontalCellBlockCountLnet/minecraft/world/gen/chunk/GenerationShapeConfig;horizontalCellBlockCount()Iintermediary method_39546Lnet/minecraft/class_5309;method_39546()Iofficial bLdzg;b()I
-
trimHeight
- Mappings:
Namespace Name Mixin selector named trimHeightLnet/minecraft/world/gen/chunk/GenerationShapeConfig;trimHeight(Lnet/minecraft/world/HeightLimitView;)Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;intermediary method_42368Lnet/minecraft/class_5309;method_42368(Lnet/minecraft/class_5539;)Lnet/minecraft/class_5309;official aLdzg;a(Ldcy;)Ldzg;
-
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
-