Package net.minecraft.world.level.biome
Record Class Climate.Parameter
java.lang.Object
java.lang.Record
net.minecraft.world.level.biome.Climate.Parameter
- Enclosing class:
- Climate
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Climate.Parameter>
private final long
The field for themax
record component.private final long
The field for themin
record component. -
Constructor Summary
ConstructorDescriptionParameter
(long min, long max) Creates an instance of aParameter
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
distance
(long p_186826_) long
distance
(Climate.Parameter p_186828_) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
max()
Returns the value of themax
record component.long
min()
Returns the value of themin
record component.static Climate.Parameter
point
(float p_186821_) static Climate.Parameter
span
(float p_186823_, float p_186824_) span
(Climate.Parameter p_186837_) static Climate.Parameter
span
(Climate.Parameter p_186830_, Climate.Parameter p_186831_) toString()
Returns a string representation of this record class.
-
Field Details
-
min
private final long minThe field for themin
record component. -
max
private final long maxThe field for themax
record component. -
CODEC
-
-
Constructor Details
-
Parameter
public Parameter(long min, long max) Creates an instance of aParameter
record class.- Parameters:
min
- the value for themin
record componentmax
- the value for themax
record component
-
-
Method Details
-
point
-
span
-
span
-
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. -
distance
public long distance(long p_186826_) -
distance
-
span
-
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. All components in this record class are compared with '=='. -
min
public long min()Returns the value of themin
record component.- Returns:
- the value of the
min
record component
-
max
public long max()Returns the value of themax
record component.- Returns:
- the value of the
max
record component
-