Record Class Breakdown.Step
java.lang.Object
java.lang.Record
dev.yowsef.stealablock.api.modifier.Breakdown.Step
- Enclosing class:
Breakdown
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thedisplayTagrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull net.kyori.adventure.key.Keykey()Returns the value of thekeyrecord component.doubleoperand()Returns the value of theoperandrecord component.@NotNull OperationReturns the value of theoperationrecord component.@NotNull StringReturns the value of theownerPluginrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thevalueAfterrecord component.
-
Constructor Details
-
Step
public Step(@NotNull @NotNull net.kyori.adventure.key.Key key, @NotNull @NotNull String ownerPlugin, @NotNull @NotNull Operation operation, double operand, double valueAfter, @Nullable @Nullable String displayTag) Creates an instance of aSteprecord class.- Parameters:
key- the value for thekeyrecord componentownerPlugin- the value for theownerPluginrecord componentoperation- the value for theoperationrecord componentoperand- the value for theoperandrecord componentvalueAfter- the value for thevalueAfterrecord componentdisplayTag- the value for thedisplayTagrecord 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. -
key
@NotNull public @NotNull net.kyori.adventure.key.Key key()Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
ownerPlugin
Returns the value of theownerPluginrecord component.- Returns:
- the value of the
ownerPluginrecord component
-
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
operand
public double operand()Returns the value of theoperandrecord component.- Returns:
- the value of the
operandrecord component
-
valueAfter
public double valueAfter()Returns the value of thevalueAfterrecord component.- Returns:
- the value of the
valueAfterrecord component
-
displayTag
Returns the value of thedisplayTagrecord component.- Returns:
- the value of the
displayTagrecord component
-