Record Class NpcAction.NpcActionData
java.lang.Object
java.lang.Record
de.oliver.fancynpcs.api.actions.NpcAction.NpcActionData
- Enclosing class:
NpcAction
-
Constructor Summary
ConstructorsConstructorDescriptionNpcActionData(int order, NpcAction action, String value) Creates an instance of aNpcActionDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intorder()Returns the value of theorderrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
NpcActionData
-
-
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. -
order
public int order()Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-