Contents
Class TimeSystem
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.tick.TickingSystem<EntityStore>
com.hypixel.hytale.server.core.modules.time.TimeSystem
- All Implemented Interfaces:
ISystem<EntityStore>, TickableSystem<EntityStore>
A ticking system that increments the time resource based on
the passed delta time of this tick.
-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionTimeSystem(ResourceType<EntityStore, TimeResource> timeResourceType) Default Constructor for aTimeSysteminstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidtick(float dt, int systemIndex, Store<EntityStore> store) Required reading:CommandBufferMethods 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
-
TimeSystem
Default Constructor for aTimeSysteminstance.- Parameters:
timeResourceType- TheTimeResourceresource type.
-
-
Method Details
-
tick
Description copied from class:TickingSystem- Specified by:
tickin interfaceTickableSystem<EntityStore>- Specified by:
tickin classTickingSystem<EntityStore>- Parameters:
dt- The delta time in seconds.systemIndex- The index of this system, used for faster lookups inStore.
-