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/GenerationShapeConfig
intermediary net/minecraft/class_5309
official dyd
named minimumY
intermediary comp_173
official g
named height
intermediary comp_174
official h
named horizontalSize
intermediary comp_178
official i
named verticalSize
intermediary comp_179
official j
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final GenerationShapeConfig
static final com.mojang.serialization.Codec
<GenerationShapeConfig> protected static final GenerationShapeConfig
protected static final GenerationShapeConfig
private final int
The field for theheight
record component.private final int
The field for thehorizontalSize
record component.private final int
The field for theminimumY
record component.protected static final GenerationShapeConfig
protected static final GenerationShapeConfig
private final int
The field for theverticalSize
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.serialization.DataResult
<GenerationShapeConfig> checkHeight
(GenerationShapeConfig config) static GenerationShapeConfig
create
(int minimumY, int height, int horizontalSize, int verticalSize) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
height()
Returns the value of theheight
record component.int
int
Returns the value of thehorizontalSize
record component.int
minimumY()
Returns the value of theminimumY
record component.final String
toString()
Returns a string representation of this record class.trimHeight
(HeightLimitView world) int
int
Returns the value of theverticalSize
record component.
-
Field Details
-
minimumY
private final int minimumYThe field for theminimumY
record component. -
height
private final int heightThe field for theheight
record component. -
horizontalSize
private final int horizontalSizeThe field for thehorizontalSize
record component. -
verticalSize
private final int verticalSizeThe field for theverticalSize
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_24804
Lnet/minecraft/class_5309;field_24804:Lcom/mojang/serialization/Codec;
official a
Ldyd;a:Lcom/mojang/serialization/Codec;
-
SURFACE
- Mappings:
Namespace Name Mixin selector named SURFACE
Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;SURFACE:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
intermediary field_38253
Lnet/minecraft/class_5309;field_38253:Lnet/minecraft/class_5309;
official b
Ldyd;b:Ldyd;
-
NETHER
- Mappings:
Namespace Name Mixin selector named NETHER
Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;NETHER:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
intermediary field_37138
Lnet/minecraft/class_5309;field_37138:Lnet/minecraft/class_5309;
official c
Ldyd;c:Ldyd;
-
END
- Mappings:
Namespace Name Mixin selector named END
Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;END:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
intermediary field_37139
Lnet/minecraft/class_5309;field_37139:Lnet/minecraft/class_5309;
official d
Ldyd;d:Ldyd;
-
CAVES
- Mappings:
Namespace Name Mixin selector named CAVES
Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;CAVES:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
intermediary field_37140
Lnet/minecraft/class_5309;field_37140:Lnet/minecraft/class_5309;
official e
Ldyd;e:Ldyd;
-
FLOATING_ISLANDS
- Mappings:
Namespace Name Mixin selector named FLOATING_ISLANDS
Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;FLOATING_ISLANDS:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
intermediary field_37141
Lnet/minecraft/class_5309;field_37141:Lnet/minecraft/class_5309;
official f
Ldyd;f:Ldyd;
-
-
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)V
intermediary <init>
Lnet/minecraft/class_5309;<init>(IIII)V
official <init>
Ldyd;<init>(IIII)V
-
-
Method Details
-
checkHeight
private static com.mojang.serialization.DataResult<GenerationShapeConfig> checkHeight(GenerationShapeConfig config) - Mappings:
Namespace Name Mixin selector named checkHeight
Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;checkHeight(Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;)Lcom/mojang/serialization/DataResult;
intermediary method_32995
Lnet/minecraft/class_5309;method_32995(Lnet/minecraft/class_5309;)Lcom/mojang/serialization/DataResult;
official a
Ldyd;a(Ldyd;)Lcom/mojang/serialization/DataResult;
-
create
public static GenerationShapeConfig create(int minimumY, int height, int horizontalSize, int verticalSize) - Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;create(IIII)Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
intermediary method_32994
Lnet/minecraft/class_5309;method_32994(IIII)Lnet/minecraft/class_5309;
official a
Ldyd;a(IIII)Ldyd;
-
verticalCellBlockCount
public int verticalCellBlockCount()- Mappings:
Namespace Name Mixin selector named verticalCellBlockCount
Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;verticalCellBlockCount()I
intermediary method_39545
Lnet/minecraft/class_5309;method_39545()I
official a
Ldyd;a()I
-
horizontalCellBlockCount
public int horizontalCellBlockCount()- Mappings:
Namespace Name Mixin selector named horizontalCellBlockCount
Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;horizontalCellBlockCount()I
intermediary method_39546
Lnet/minecraft/class_5309;method_39546()I
official b
Ldyd;b()I
-
trimHeight
- Mappings:
Namespace Name Mixin selector named trimHeight
Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;trimHeight(Lnet/minecraft/world/HeightLimitView;)Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
intermediary method_42368
Lnet/minecraft/class_5309;method_42368(Lnet/minecraft/class_5539;)Lnet/minecraft/class_5309;
official a
Ldyd;a(Ldcb;)Ldyd;
-
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 theminimumY
record component.- Returns:
- the value of the
minimumY
record component
-
height
public int height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
horizontalSize
public int horizontalSize()Returns the value of thehorizontalSize
record component.- Returns:
- the value of the
horizontalSize
record component
-
verticalSize
public int verticalSize()Returns the value of theverticalSize
record component.- Returns:
- the value of the
verticalSize
record component
-