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 intermediary net/minecraft/class_5309official dhpnamed net/minecraft/world/gen/chunk/GenerationShapeConfigintermediary comp_173official gnamed minimumYintermediary comp_174official hnamed heightintermediary comp_178official inamed horizontalSizeintermediary comp_179official jnamed 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 intermediary field_24804Lnet/minecraft/class_5309;field_24804:Lcom/mojang/serialization/Codec;official aLdhp;a:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/chunk/GenerationShapeConfig;CODEC:Lcom/mojang/serialization/Codec;
-
SURFACE
- Mappings:
Namespace Name Mixin selector intermediary field_38253Lnet/minecraft/class_5309;field_38253:Lnet/minecraft/class_5309;official bLdhp;b:Ldhp;named SURFACELnet/minecraft/world/gen/chunk/GenerationShapeConfig;SURFACE:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
-
NETHER
- Mappings:
Namespace Name Mixin selector intermediary field_37138Lnet/minecraft/class_5309;field_37138:Lnet/minecraft/class_5309;official cLdhp;c:Ldhp;named NETHERLnet/minecraft/world/gen/chunk/GenerationShapeConfig;NETHER:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
-
END
- Mappings:
Namespace Name Mixin selector intermediary field_37139Lnet/minecraft/class_5309;field_37139:Lnet/minecraft/class_5309;official dLdhp;d:Ldhp;named ENDLnet/minecraft/world/gen/chunk/GenerationShapeConfig;END:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
-
CAVES
- Mappings:
Namespace Name Mixin selector intermediary field_37140Lnet/minecraft/class_5309;field_37140:Lnet/minecraft/class_5309;official eLdhp;e:Ldhp;named CAVESLnet/minecraft/world/gen/chunk/GenerationShapeConfig;CAVES:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
-
FLOATING_ISLANDS
- Mappings:
Namespace Name Mixin selector intermediary field_37141Lnet/minecraft/class_5309;field_37141:Lnet/minecraft/class_5309;official fLdhp;f:Ldhp;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 intermediary <init>Lnet/minecraft/class_5309;<init>(IIII)Vofficial <init>Ldhp;<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 intermediary method_32995Lnet/minecraft/class_5309;method_32995(Lnet/minecraft/class_5309;)Lcom/mojang/serialization/DataResult;official aLdhp;a(Ldhp;)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 intermediary method_32994Lnet/minecraft/class_5309;method_32994(IIII)Lnet/minecraft/class_5309;official aLdhp;a(IIII)Ldhp;named createLnet/minecraft/world/gen/chunk/GenerationShapeConfig;create(IIII)Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
-
verticalCellBlockCount
public int verticalCellBlockCount()- Mappings:
Namespace Name Mixin selector intermediary method_39545Lnet/minecraft/class_5309;method_39545()Iofficial aLdhp;a()Inamed verticalCellBlockCountLnet/minecraft/world/gen/chunk/GenerationShapeConfig;verticalCellBlockCount()I
-
horizontalCellBlockCount
public int horizontalCellBlockCount()- Mappings:
Namespace Name Mixin selector intermediary method_39546Lnet/minecraft/class_5309;method_39546()Iofficial bLdhp;b()Inamed horizontalCellBlockCountLnet/minecraft/world/gen/chunk/GenerationShapeConfig;horizontalCellBlockCount()I
-
trimHeight
- Mappings:
Namespace Name Mixin selector intermediary method_42368Lnet/minecraft/class_5309;method_42368(Lnet/minecraft/class_5539;)Lnet/minecraft/class_5309;official aLdhp;a(Lcmm;)Ldhp;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
-