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
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the duration of the tick in ms.@NotNull Instance
Gets the instance.
-
Constructor Details
-
InstanceTickEvent
-
-
Method Details
-
getInstance
Description copied from interface:InstanceEvent
Gets the instance.- Specified by:
getInstance
in interfaceInstanceEvent
- Returns:
- instance
-
getDuration
public int getDuration()Gets the duration of the tick in ms.- Returns:
- the duration
-