Class InstanceTickEvent
java.lang.Object
net.minestom.server.event.instance.InstanceTickEvent
- All Implemented Interfaces:
Event, InstanceEvent
Called when an instance processes a tick.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the duration of the tick in ms.Gets the instance.
-
Constructor Details
-
InstanceTickEvent
-
-
Method Details
-
getInstance
Description copied from interface:InstanceEventGets the instance.- Specified by:
getInstancein interfaceInstanceEvent- Returns:
- instance
-
getDuration
public int getDuration()Gets the duration of the tick in ms.- Returns:
- the duration
-