Contents
Class DelayedSystem<ECS_TYPE>
java.lang.Object
com.hypixel.hytale.component.system.System<ECS_TYPE>
com.hypixel.hytale.component.system.tick.TickingSystem<ECS_TYPE>
com.hypixel.hytale.component.system.DelayedSystem<ECS_TYPE>
- All Implemented Interfaces:
ISystem<ECS_TYPE>, TickableSystem<ECS_TYPE>
- Direct Known Subclasses:
BlackboardSystems.TickingSystem, SleepNotificationSystem, StartSlumberSystem, StartVoidEventInFragmentSystem, TimePacketSystem, UpdateEntitySeedSystem, WorldConfigSaveSystem
A ticking system with a configured interval that represents the frequency of the system
- Since:
- 2020/11/23
-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionDelayedSystem(float intervalSec) Default Constructor for aDelayedSysteminstance -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddelayedTick(float dt, int systemIndex, Store<ECS_TYPE> store) A tick method called once every interval provided by the constructorDelayedSystem(float).floatResourceType<ECS_TYPE, com.hypixel.hytale.component.system.DelayedSystem.Data<ECS_TYPE>> voidRequired 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
-
DelayedSystem
public DelayedSystem(float intervalSec) Default Constructor for aDelayedSysteminstance- Parameters:
intervalSec- The interval, in seconds, of this delayed system
-
-
Method Details
-
getResourceType
@Nonnull public ResourceType<ECS_TYPE, com.hypixel.hytale.component.system.DelayedSystem.Data<ECS_TYPE>> getResourceType()- Returns:
- the resource type of this system
-
getIntervalSec
public float getIntervalSec()- Returns:
- the interval, in seconds, of this system
-
tick
Description copied from class:TickingSystem- Specified by:
tickin interfaceTickableSystem<ECS_TYPE>- Specified by:
tickin classTickingSystem<ECS_TYPE>- Parameters:
dt- The delta time in seconds.systemIndex- The index of this system, used for faster lookups inStore.
-
delayedTick
A tick method called once every interval provided by the constructorDelayedSystem(float).- 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.
-