Contents
Record Class MultiMixDensity.Key
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.hytalegenerator.density.MultiMixDensity.Key
- Enclosing class:
MultiMixDensity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondensity()Returns the value of thedensityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.doublevalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
Key
Creates an instance of aKeyrecord class.- Parameters:
value- the value for thevaluerecord componentdensity- the value for thedensityrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
value
public double value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
density
Returns the value of thedensityrecord component.- Returns:
- the value of the
densityrecord component
-