Contents
Class AbilityChargeMeleeAttackSystem
java.lang.Object
com.hypixel.hytale.component.system.EventSystem<InteractionChainStartEvent>
com.hypixel.hytale.component.system.EntityEventSystem<EntityStore, InteractionChainStartEvent>
com.hypixel.hytale.builtin.abilities.trigger.AbilityChargeMeleeAttackSystem
- All Implemented Interfaces:
ISystem<EntityStore>, QuerySystem<EntityStore>
public class AbilityChargeMeleeAttackSystem
extends EntityEventSystem<EntityStore, InteractionChainStartEvent>
The melee half of the OnPrimaryActivation trigger: a Primary chain starting with a melee weapon in
hand is an attack, released the moment it starts. Chains whose root is tagged Ranged are
skipped: a bow or crossbow chain starts on the click but only attacks when it launches,
which
AbilityChargeRangedAttackSystem handles.-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()voidhandle(int index, ArchetypeChunk<EntityStore> archetypeChunk, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer, InteractionChainStartEvent event) An overrideable method called to handle an event for a specific archetype chunk.Methods inherited from class EntityEventSystem
handleInternalMethods inherited from class EventSystem
getEventTypeMethods 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, test
-
Constructor Details
-
AbilityChargeMeleeAttackSystem
public AbilityChargeMeleeAttackSystem()
-
-
Method Details
-
getQuery
-
handle
public void handle(int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull InteractionChainStartEvent event) Description copied from class:EntityEventSystemAn overrideable method called to handle an event for a specific archetype chunk.- Specified by:
handlein classEntityEventSystem<EntityStore, InteractionChainStartEvent>- Parameters:
index- The index of the archetype chunk being processed.archetypeChunk- The archetype chunk being processed.store- The ECS store.commandBuffer- The command buffer for queuing ECS commands.event- The event to be handled.
-