Contents
Class TimePacketSystem
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.tick.TickingSystem<EntityStore>
com.hypixel.hytale.component.system.DelayedSystem<EntityStore>
com.hypixel.hytale.server.core.modules.time.TimePacketSystem
- All Implemented Interfaces:
ISystem<EntityStore>, TickableSystem<EntityStore>
A delayed system that handles sending the current world time to all players within the store.
-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionTimePacketSystem(ResourceType<EntityStore, WorldTimeResource> worldTimeResourceType) Default Constructor for aTimePacketSysteminstance. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelayedTick(float dt, int systemIndex, Store<EntityStore> store) A tick method called once every interval provided by the constructorDelayedSystem(float).Methods inherited from class DelayedSystem
getIntervalSec, getResourceType, tickMethods inherited from class System
getComponentRegistrations, getResourceRegistrations, registerResource, registerResourceMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ISystem
getDependencies, getGroup, onSystemRegistered, onSystemUnregistered
-
Constructor Details
-
TimePacketSystem
public TimePacketSystem(@Nonnull ResourceType<EntityStore, WorldTimeResource> worldTimeResourceType) Default Constructor for aTimePacketSysteminstance.- Parameters:
worldTimeResourceType- The resource type for theWorldTimeResourceresource.
-
-
Method Details
-
delayedTick
Description copied from class:DelayedSystemA tick method called once every interval provided by the constructorDelayedSystem(float).- Specified by:
delayedTickin classDelayedSystem<EntityStore>- Parameters:
dt- The delta time in seconds since the last call to this method.systemIndex- The index of this system, used for faster lookups inStore.store- The store calling this method.
-