Record Class BlendingData.Serialized

java.lang.Object
java.lang.Record
net.minecraft.world.gen.chunk.BlendingData.Serialized
Record Components:
minSection -
maxSection -
heights -
Enclosing class:
BlendingData

public static record BlendingData.Serialized(int minSection, int maxSection, Optional<double[]> heights) extends Record
Mappings:
Namespace Name
named net/minecraft/world/gen/chunk/BlendingData$Serialized
intermediary net/minecraft/class_6749$class_9899
official ees$d
named minSection
intermediary comp_2969
official b
named maxSection
intermediary comp_2970
official c
named heights
intermediary comp_2971
official d
  • Field Details

    • minSection

      private final int minSection
      The field for the minSection record component.
    • maxSection

      private final int maxSection
      The field for the maxSection record component.
    • heights

      private final Optional<double[]> heights
      The field for the heights record component.
    • DOUBLE_ARRAY_CODEC

      private static final com.mojang.serialization.Codec<double[]> DOUBLE_ARRAY_CODEC
      Mappings:
      Namespace Name Mixin selector
      named DOUBLE_ARRAY_CODEC Lnet/minecraft/world/gen/chunk/BlendingData$Serialized;DOUBLE_ARRAY_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_52656 Lnet/minecraft/class_6749$class_9899;field_52656:Lcom/mojang/serialization/Codec;
      official e Lees$d;e:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.Codec<BlendingData.Serialized> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/gen/chunk/BlendingData$Serialized;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_52655 Lnet/minecraft/class_6749$class_9899;field_52655:Lcom/mojang/serialization/Codec;
      official a Lees$d;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • Serialized

      public Serialized(int int2, int int3, Optional<double[]> optional)
  • Method Details

    • validate

      private static com.mojang.serialization.DataResult<BlendingData.Serialized> validate(BlendingData.Serialized serialized)
      Mappings:
      Namespace Name Mixin selector
      named validate Lnet/minecraft/world/gen/chunk/BlendingData$Serialized;validate(Lnet/minecraft/world/gen/chunk/BlendingData$Serialized;)Lcom/mojang/serialization/DataResult;
      intermediary method_61811 Lnet/minecraft/class_6749$class_9899;method_61811(Lnet/minecraft/class_6749$class_9899;)Lcom/mojang/serialization/DataResult;
      official a Lees$d;a(Lees$d;)Lcom/mojang/serialization/DataResult;
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • minSection

      public int minSection()
      Returns the value of the minSection record component.
      Returns:
      the value of the minSection record component
    • maxSection

      public int maxSection()
      Returns the value of the maxSection record component.
      Returns:
      the value of the maxSection record component
    • heights

      public Optional<double[]> heights()
      Returns the value of the heights record component.
      Returns:
      the value of the heights record component