Contents
Class NewSpawnStartTickingSystem
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.tick.TickingSystem<EntityStore>
com.hypixel.hytale.server.npc.systems.NewSpawnStartTickingSystem
- All Implemented Interfaces:
ISystem<EntityStore>, TickableSystem<EntityStore>
A ticking system that handles removing the
NonTicking component from new NPCs at the end of their first tick so that they can begin ticking.
Created on 25/11/2020-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe queue resource used for queueing ticking queue requests -
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionNewSpawnStartTickingSystem(ResourceType<EntityStore, NewSpawnStartTickingSystem.QueueResource> queueResourceType) Default Constructor for aNewSpawnStartTickingSysteminstance -
Method Summary
Modifier and TypeMethodDescriptionstatic voidqueueNewSpawn(Ref<EntityStore> reference, Store<EntityStore> store) Called to queue a new spawn of a specific entityvoidtick(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
getGroup, onSystemRegistered, onSystemUnregistered
-
Constructor Details
-
NewSpawnStartTickingSystem
public NewSpawnStartTickingSystem(@Nonnull ResourceType<EntityStore, NewSpawnStartTickingSystem.QueueResource> queueResourceType) Default Constructor for aNewSpawnStartTickingSysteminstance- Parameters:
queueResourceType- TheNewSpawnStartTickingSystem.QueueResourceresource type
-
-
Method Details
-
getDependencies
-
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.
-
queueNewSpawn
public static void queueNewSpawn(@Nonnull Ref<EntityStore> reference, @Nonnull Store<EntityStore> store) Called to queue a new spawn of a specific entity- Parameters:
reference- The entity reference of the entitystore- The affiliated store for component access
-