Record Class WalkCancelledEvent
java.lang.Object
java.lang.Record
com.botwithus.bot.api.event.WalkCancelledEvent
- Record Components:
targetX- the original target world X coordinatetargetY- the original target world Y coordinatetimestamp- event creation time in milliseconds since epoch
- All Implemented Interfaces:
GameEvent
-
Constructor Summary
ConstructorsConstructorDescriptionWalkCancelledEvent(int targetX, int targetY) WalkCancelledEvent(int targetX, int targetY, long timestamp) Creates an instance of aWalkCancelledEventrecord 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.inttargetX()Returns the value of thetargetXrecord component.inttargetY()Returns the value of thetargetYrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WalkCancelledEvent
public WalkCancelledEvent(int targetX, int targetY) -
WalkCancelledEvent
public WalkCancelledEvent(int targetX, int targetY, long timestamp) Creates an instance of aWalkCancelledEventrecord 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. -
targetX
-
targetY
-
timestamp
-