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$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 Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<BlendingData.Serialized> private static final com.mojang.serialization.Codec
<double[]> private final Optional
<double[]> The field for theheights
record component.private final int
The field for themaxSection
record component.private final int
The field for theminSection
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Optional
<double[]> heights()
Returns the value of theheights
record component.int
Returns the value of themaxSection
record component.int
Returns the value of theminSection
record component.final String
toString()
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 theminSection
record component. -
maxSection
private final int maxSectionThe field for themaxSection
record component. -
heights
The field for theheights
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
- 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
-
-
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
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 theminSection
record component.- Returns:
- the value of the
minSection
record component
-
maxSection
public int maxSection()Returns the value of themaxSection
record component.- Returns:
- the value of the
maxSection
record component
-
heights
Returns the value of theheights
record component.- Returns:
- the value of the
heights
record component
-