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 dej
intermediary net/minecraft/class_5309
named net/minecraft/world/gen/chunk/GenerationShapeConfig
official g
intermediary comp_173
named minimumY
official h
intermediary comp_174
named height
official i
intermediary comp_178
named horizontalSize
official j
intermediary comp_179
named verticalSize
  • Field Details

    • minimumY

      private final int minimumY
      The field for the minimumY record component.
    • height

      private final int height
      The field for the height record component.
    • horizontalSize

      private final int horizontalSize
      The field for the horizontalSize record component.
    • verticalSize

      private final int verticalSize
      The field for the verticalSize record component.
    • CODEC

      public static final com.mojang.serialization.Codec<GenerationShapeConfig> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ldej;a:Lcom/mojang/serialization/Codec;
      intermediary field_24804 Lnet/minecraft/class_5309;field_24804:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;CODEC:Lcom/mojang/serialization/Codec;
    • SURFACE

      protected static final GenerationShapeConfig SURFACE
      Mappings:
      Namespace Name Mixin selector
      official b Ldej;b:Ldej;
      intermediary field_38253 Lnet/minecraft/class_5309;field_38253:Lnet/minecraft/class_5309;
      named SURFACE Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;SURFACE:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
    • NETHER

      protected static final GenerationShapeConfig NETHER
      Mappings:
      Namespace Name Mixin selector
      official c Ldej;c:Ldej;
      intermediary field_37138 Lnet/minecraft/class_5309;field_37138:Lnet/minecraft/class_5309;
      named NETHER Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;NETHER:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
    • END

      protected static final GenerationShapeConfig END
      Mappings:
      Namespace Name Mixin selector
      official d Ldej;d:Ldej;
      intermediary field_37139 Lnet/minecraft/class_5309;field_37139:Lnet/minecraft/class_5309;
      named END Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;END:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
    • CAVES

      protected static final GenerationShapeConfig CAVES
      Mappings:
      Namespace Name Mixin selector
      official e Ldej;e:Ldej;
      intermediary field_37140 Lnet/minecraft/class_5309;field_37140:Lnet/minecraft/class_5309;
      named CAVES Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;CAVES:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
    • FLOATING_ISLANDS

      protected static final GenerationShapeConfig FLOATING_ISLANDS
      Mappings:
      Namespace Name Mixin selector
      official f Ldej;f:Ldej;
      intermediary field_37141 Lnet/minecraft/class_5309;field_37141:Lnet/minecraft/class_5309;
      named FLOATING_ISLANDS Lnet/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> Ldej;<init>(IIII)V
      intermediary <init> Lnet/minecraft/class_5309;<init>(IIII)V
      named <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 a Ldej;a(Ldej;)Lcom/mojang/serialization/DataResult;
      intermediary method_32995 Lnet/minecraft/class_5309;method_32995(Lnet/minecraft/class_5309;)Lcom/mojang/serialization/DataResult;
      named checkHeight Lnet/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 a Ldej;a(IIII)Ldej;
      intermediary method_32994 Lnet/minecraft/class_5309;method_32994(IIII)Lnet/minecraft/class_5309;
      named create Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;create(IIII)Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
    • verticalBlockSize

      public int verticalBlockSize()
      Mappings:
      Namespace Name Mixin selector
      official a Ldej;a()I
      intermediary method_39545 Lnet/minecraft/class_5309;method_39545()I
      named verticalBlockSize Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;verticalBlockSize()I
    • horizontalBlockSize

      public int horizontalBlockSize()
      Mappings:
      Namespace Name Mixin selector
      official b Ldej;b()I
      intermediary method_39546 Lnet/minecraft/class_5309;method_39546()I
      named horizontalBlockSize Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;horizontalBlockSize()I
    • trimHeight

      public GenerationShapeConfig trimHeight(HeightLimitView world)
      Mappings:
      Namespace Name Mixin selector
      official a Ldej;a(Lcjy;)Ldej;
      intermediary method_42368 Lnet/minecraft/class_5309;method_42368(Lnet/minecraft/class_5539;)Lnet/minecraft/class_5309;
      named trimHeight Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;trimHeight(Lnet/minecraft/world/HeightLimitView;)Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • minimumY

      public int minimumY()
      Returns the value of the minimumY record component.
      Returns:
      the value of the minimumY record component
    • height

      public int height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • horizontalSize

      public int horizontalSize()
      Returns the value of the horizontalSize record component.
      Returns:
      the value of the horizontalSize record component
    • verticalSize

      public int verticalSize()
      Returns the value of the verticalSize record component.
      Returns:
      the value of the verticalSize record component