Contents
Class ArchetypeTickingSystem<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.tick.ArchetypeTickingSystem<ECS_TYPE>
- All Implemented Interfaces:
ISystem<ECS_TYPE>, QuerySystem<ECS_TYPE>, TickableSystem<ECS_TYPE>
- Direct Known Subclasses:
EntityTickingSystem, NetworkTickSystem, WildernessDebugMapSystem, WildernessDebugShapeSystem, WildernessEntitySystems.TickSystem, WorldEventTickSystem
public abstract class ArchetypeTickingSystem<ECS_TYPE>
extends TickingSystem<ECS_TYPE>
implements QuerySystem<ECS_TYPE>
-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstruewhen the system'sQueryis exactly what is wanted and should not be modified by theComponentRegistrywith implicit handling.booleantest(ComponentRegistry<ECS_TYPE> componentRegistry, Archetype<ECS_TYPE> archetype) voidRequired reading:CommandBufferabstract voidtick(float dt, ArchetypeChunk<ECS_TYPE> archetypeChunk, Store<ECS_TYPE> store, CommandBuffer<ECS_TYPE> commandBuffer) 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, onSystemUnregisteredMethods inherited from interface QuerySystem
getHierarchyScope, getQuery
-
Constructor Details
-
ArchetypeTickingSystem
public ArchetypeTickingSystem()
-
-
Method Details
-
test
public boolean test(@Nonnull ComponentRegistry<ECS_TYPE> componentRegistry, @Nonnull Archetype<ECS_TYPE> archetype) - Specified by:
testin interfaceQuerySystem<ECS_TYPE>
-
isExplicitQuery
public boolean isExplicitQuery()Returnstruewhen the system'sQueryis exactly what is wanted and should not be modified by theComponentRegistrywith implicit handling.For example by default
QuerySystem's will by default exclude entities with theNonTickingcomponent if this returnsfalse.- Returns:
- if the
Queryreturned byQuerySystem.getQuery()is explicit.
-
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.
-
tick
public abstract void tick(float dt, @Nonnull ArchetypeChunk<ECS_TYPE> archetypeChunk, @Nonnull Store<ECS_TYPE> store, @Nonnull CommandBuffer<ECS_TYPE> commandBuffer) Required reading:CommandBufferCalled once per world tick for each
ArchetypeChunkwith anArchetypethat fulfills theQueryprovided byQuerySystem.getQuery()}.- Parameters:
dt- The delta time in seconds.archetypeChunk- The affiliated archetype chunkstore- The entity store for component accesscommandBuffer- The command buffer to execute tasks
-