Contents
Class TriggerVolumeTickingSystem
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.tick.TickingSystem<EntityStore>
com.hypixel.hytale.builtin.triggervolumes.system.TriggerVolumeTickingSystem
- All Implemented Interfaces:
ISystem<EntityStore>, TickableSystem<EntityStore>
Drives the per-tick lifecycle (ENTER / TICK / EXIT) for every active trigger volume in a world.
Resolves which entities are inside which volumes via the spatial index, evaluates conditions
and fires effects (immediate and delayed), and forwards exit events when entities leave or when
a volume is disabled, unloaded, or destroyed.
-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionTriggerVolumeTickingSystem(ResourceType<EntityStore, TriggerVolumeManager> managerResourceType, ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> playerSpatialResourceType, ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> entitySpatialResourceType, ResourceType<EntityStore, TimeResource> timeResourceType, ResourceType<EntityStore, TickSuppressionRegistry> tickSuppressionResourceType) -
Method Summary
Modifier and TypeMethodDescriptionvoidtick(float deltaSeconds, int systemIndex, Store<EntityStore> store) Main per-frame entry point.Methods 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
-
TriggerVolumeTickingSystem
public TriggerVolumeTickingSystem(@Nonnull ResourceType<EntityStore, TriggerVolumeManager> managerResourceType, @Nonnull ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> playerSpatialResourceType, @Nonnull ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> entitySpatialResourceType, @Nonnull ResourceType<EntityStore, TimeResource> timeResourceType, @Nonnull ResourceType<EntityStore, TickSuppressionRegistry> tickSuppressionResourceType)
-
-
Method Details
-
getDependencies
-
tick
Main per-frame entry point. Builds the set of volumes that need ticking from the spatial index plus any volume that is still tracking entities (so EXIT can be processed), then ticks each, drains the delayed-effect queue, and finalizes pending destroys.- Specified by:
tickin interfaceTickableSystem<EntityStore>- Specified by:
tickin classTickingSystem<EntityStore>- Parameters:
deltaSeconds- The delta time in seconds.systemIndex- The index of this system, used for faster lookups inStore.
-