Record Class AnvilStat.ValueOperationPair
java.lang.Object
java.lang.Record
xericker.arenalegends.gameplay.anvilstat.data.AnvilStat.ValueOperationPair
- Enclosing class:
AnvilStat
public static record AnvilStat.ValueOperationPair(double value, org.bukkit.attribute.AttributeModifier.Operation operation)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionValueOperationPair(double value, org.bukkit.attribute.AttributeModifier.Operation operation) Creates an instance of aValueOperationPairrecord class. -
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.org.bukkit.attribute.AttributeModifier.OperationReturns the value of theoperationrecord component.final StringtoString()Returns a string representation of this record class.doublevalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
ValueOperationPair
public ValueOperationPair(double value, org.bukkit.attribute.AttributeModifier.Operation operation) Creates an instance of aValueOperationPairrecord class.- Parameters:
value- the value for thevaluerecord componentoperation- the value for theoperationrecord 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
-
operation
public org.bukkit.attribute.AttributeModifier.Operation operation()Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-