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 - edb- 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 SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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- 
minimumYprivate final int minimumYThe field for theminimumYrecord component.
- 
heightprivate final int heightThe field for theheightrecord component.
- 
horizontalSizeprivate final int horizontalSizeThe field for thehorizontalSizerecord component.
- 
verticalSizeprivate final int verticalSizeThe field for theverticalSizerecord 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- Ledb;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- Ledb;b:Ledb;
 
- 
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- Ledb;c:Ledb;
 
- 
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- Ledb;d:Ledb;
 
- 
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- Ledb;e:Ledb;
 
- 
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- Ledb;f:Ledb;
 
 
- 
- 
Constructor Details- 
GenerationShapeConfigpublic 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>- Ledb;<init>(IIII)V
 
 
- 
- 
Method Details- 
checkHeightprivate 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- Ledb;a(Ledb;)Lcom/mojang/serialization/DataResult;
 
- 
createpublic 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- Ledb;a(IIII)Ledb;
 
- 
verticalCellBlockCountpublic 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- Ledb;a()I
 
- 
horizontalCellBlockCountpublic 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- Ledb;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- Ledb;a(Ldgl;)Ledb;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
minimumYpublic int minimumY()Returns the value of theminimumYrecord component.- Returns:
- the value of the minimumYrecord component
 
- 
heightpublic int height()Returns the value of theheightrecord component.- Returns:
- the value of the heightrecord component
 
- 
horizontalSizepublic int horizontalSize()Returns the value of thehorizontalSizerecord component.- Returns:
- the value of the horizontalSizerecord component
 
- 
verticalSizepublic int verticalSize()Returns the value of theverticalSizerecord component.- Returns:
- the value of the verticalSizerecord component
 
 
-