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 SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Climate.Parameter>private final longThe field for themaxrecord component.private final longThe field for theminrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionParameter(long min, long max) Creates an instance of aParameterrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionlongdistance(long p_186826_) longdistance(Climate.Parameter p_186828_) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longmax()Returns the value of themaxrecord component.longmin()Returns the value of theminrecord component.static Climate.Parameterpoint(float p_186821_) static Climate.Parameterspan(float p_186823_, float p_186824_) span(Climate.Parameter p_186837_) static Climate.Parameterspan(Climate.Parameter p_186830_, Climate.Parameter p_186831_) toString()Returns a string representation of this record class.
- 
Field Details- 
minprivate final long minThe field for theminrecord component.
- 
maxprivate final long maxThe field for themaxrecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
Parameterpublic Parameter(long min, long max) Creates an instance of aParameterrecord class.- Parameters:
- min- the value for the- minrecord component
- max- the value for the- maxrecord component
 
 
- 
- 
Method Details- 
point
- 
span
- 
span
- 
toStringReturns 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.
- 
distancepublic long distance(long p_186826_) 
- 
distance
- 
span
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
minpublic long min()Returns the value of theminrecord component.- Returns:
- the value of the minrecord component
 
- 
maxpublic long max()Returns the value of themaxrecord component.- Returns:
- the value of the maxrecord component
 
 
-