Class NetworkTickResource

java.lang.Object
com.hypixel.hytale.server.core.modules.entity.player.NetworkTickResource
All Implemented Interfaces:
Resource<EntityStore>, Cloneable

public class NetworkTickResource extends Object implements Resource<EntityStore>
Per-world resource that tracks the duration between consecutive server ticks, sent to clients via NetworkTickSystem.
  • Constructor Details

    • NetworkTickResource

      public NetworkTickResource()
  • Method Details

    • updateTickDuration

      public void updateTickDuration()
      Samples the current nano-time, computes the elapsed microseconds since the previous call.
    • getTickDurationMicros

      public int getTickDurationMicros()
    • clone

      @Nonnull public Resource<EntityStore> clone()
      Specified by:
      clone in interface Resource<EntityStore>
      Returns:
      a clone instance of the original resource instance.