Record Class TickEvent
java.lang.Object
java.lang.Record
dev.overlord.zomboidforge.api.TickEvent
- Record Components:
tick- number of the frame, counted from 1 at the first frame after the server started
- All Implemented Interfaces:
Event, MainThreadEvent
Posted on the main thread once per frame of the main loop, before the queued main-thread
tasks run.
-
Constructor Summary
Constructors -
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.longtick()Returns the value of thetickrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TickEvent
public TickEvent(long tick) Creates an instance of aTickEventrecord class.- Parameters:
tick- the value for thetickrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
tick
-