Record Class ActionExecutedEvent
java.lang.Object
java.lang.Record
com.botwithus.bot.api.event.ActionExecutedEvent
- Record Components:
actionId- the action type IDparam1- the first action parameterparam2- the second action parameterparam3- the third action parametertimestamp- event creation time in milliseconds since epoch
- All Implemented Interfaces:
GameEvent
-
Constructor Summary
ConstructorsConstructorDescriptionActionExecutedEvent(int actionId, int param1, int param2, int param3) ActionExecutedEvent(int actionId, int param1, int param2, int param3, long timestamp) Creates an instance of aActionExecutedEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintactionId()Returns the value of theactionIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intparam1()Returns the value of theparam1record component.intparam2()Returns the value of theparam2record component.intparam3()Returns the value of theparam3record component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActionExecutedEvent
public ActionExecutedEvent(int actionId, int param1, int param2, int param3) -
ActionExecutedEvent
public ActionExecutedEvent(int actionId, int param1, int param2, int param3, long timestamp) Creates an instance of aActionExecutedEventrecord class.
-
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
actionId
-
param1
-
param2
-
param3
-
timestamp
-