Contents
Class NetworkTickResource
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.player.NetworkTickResource
- All Implemented Interfaces:
Resource<EntityStore>, Cloneable
Per-world resource that tracks the duration between consecutive
server ticks, sent to clients via
NetworkTickSystem.-
Field Summary
Fields inherited from interface Resource
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intvoidSamples the current nano-time, computes the elapsed microseconds since the previous call.
-
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
- Specified by:
clonein interfaceResource<EntityStore>- Returns:
- a clone instance of the original resource instance.
-