Class InstanceTickEvent

java.lang.Object
net.minestom.server.event.instance.InstanceTickEvent
All Implemented Interfaces:
Event, InstanceEvent

public class InstanceTickEvent extends Object implements InstanceEvent
Called when an instance processes a tick.
  • Constructor Details

    • InstanceTickEvent

      public InstanceTickEvent(@NotNull @NotNull Instance instance, long time, long lastTickAge)
  • Method Details

    • getInstance

      @NotNull public @NotNull Instance getInstance()
      Description copied from interface: InstanceEvent
      Gets the instance.
      Specified by:
      getInstance in interface InstanceEvent
      Returns:
      instance
    • getDuration

      public int getDuration()
      Gets the duration of the tick in ms.
      Returns:
      the duration