Package net.minecraft.world.gen.chunk
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$Serializedintermediary net/minecraft/class_6749$class_9899official eis$dnamed minSectionintermediary comp_2969official bnamed maxSectionintermediary comp_2970official cnamed heightsintermediary comp_2971official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BlendingData.Serialized> private static final com.mojang.serialization.Codec<double[]> private final Optional<double[]> The field for theheightsrecord component.private final intThe field for themaxSectionrecord component.private final intThe field for theminSectionrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Optional<double[]> heights()Returns the value of theheightsrecord component.intReturns the value of themaxSectionrecord component.intReturns the value of theminSectionrecord component.final StringtoString()Returns a string representation of this record class.private static com.mojang.serialization.DataResult<BlendingData.Serialized> validate(BlendingData.Serialized serialized)
-
Field Details
-
minSection
private final int minSectionThe field for theminSectionrecord component. -
maxSection
private final int maxSectionThe field for themaxSectionrecord component. -
heights
The field for theheightsrecord component. -
DOUBLE_ARRAY_CODEC
private static final com.mojang.serialization.Codec<double[]> DOUBLE_ARRAY_CODEC- Mappings:
Namespace Name Mixin selector named DOUBLE_ARRAY_CODECLnet/minecraft/world/gen/chunk/BlendingData$Serialized;DOUBLE_ARRAY_CODEC:Lcom/mojang/serialization/Codec;intermediary field_52656Lnet/minecraft/class_6749$class_9899;field_52656:Lcom/mojang/serialization/Codec;official eLeis$d;e:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/gen/chunk/BlendingData$Serialized;CODEC:Lcom/mojang/serialization/Codec;intermediary field_52655Lnet/minecraft/class_6749$class_9899;field_52655:Lcom/mojang/serialization/Codec;official aLeis$d;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Serialized
-
-
Method Details
-
validate
private static com.mojang.serialization.DataResult<BlendingData.Serialized> validate(BlendingData.Serialized serialized) - Mappings:
Namespace Name Mixin selector named validateLnet/minecraft/world/gen/chunk/BlendingData$Serialized;validate(Lnet/minecraft/world/gen/chunk/BlendingData$Serialized;)Lcom/mojang/serialization/DataResult;intermediary method_61811Lnet/minecraft/class_6749$class_9899;method_61811(Lnet/minecraft/class_6749$class_9899;)Lcom/mojang/serialization/DataResult;official aLeis$d;a(Leis$d;)Lcom/mojang/serialization/DataResult;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
minSection
public int minSection()Returns the value of theminSectionrecord component.- Returns:
- the value of the
minSectionrecord component
-
maxSection
public int maxSection()Returns the value of themaxSectionrecord component.- Returns:
- the value of the
maxSectionrecord component
-
heights
Returns the value of theheightsrecord component.- Returns:
- the value of the
heightsrecord component
-