Contents
Class ArchetypeChunkSystem<ECS_TYPE>
java.lang.Object
com.hypixel.hytale.component.system.System<ECS_TYPE>
com.hypixel.hytale.component.system.ArchetypeChunkSystem<ECS_TYPE>
- All Implemented Interfaces:
ISystem<ECS_TYPE>, QuerySystem<ECS_TYPE>
public abstract class ArchetypeChunkSystem<ECS_TYPE>
extends System<ECS_TYPE>
implements QuerySystem<ECS_TYPE>
A store holds one
ArchetypeChunk per archetype per parent, so these callbacks fire
once for every parent that has an entity of a matching archetype, not once per archetype. The
system's HierarchyScope decides which of those tables it is told about.
TODO: This is called from a non-world thread when a data update happens? We need to document that maybe make it easier to handle? But the world thread should be blocked if that does happen.
-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidonSystemAddedToArchetypeChunk(ArchetypeChunk<ECS_TYPE> archetypeChunk) Required reading:CommandBufferabstract voidonSystemRemovedFromArchetypeChunk(ArchetypeChunk<ECS_TYPE> archetypeChunk) 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, test
-
Constructor Details
-
ArchetypeChunkSystem
public ArchetypeChunkSystem()
-
-
Method Details
-
onSystemAddedToArchetypeChunk
Required reading:CommandBufferCalled when an
ArchetypeChunkwith anArchetypethat fulfills theQueryprovided byQuerySystem.getQuery()} and is first created or when the system is dynamically added to theComponentRegistry. -
onSystemRemovedFromArchetypeChunk
Required reading:CommandBufferCalled when an
ArchetypeChunkwith anArchetypethat fulfills theQueryprovided byQuerySystem.getQuery()} and is removed or when the system is dynamically removed from theComponentRegistry.
-