Contents
Class DamageSystems.ApplySoundEffects
java.lang.Object
com.hypixel.hytale.component.system.EventSystem<Damage>
com.hypixel.hytale.component.system.EntityEventSystem<EntityStore, Damage>
com.hypixel.hytale.server.core.modules.entity.damage.DamageEventSystem
com.hypixel.hytale.server.core.modules.entity.damage.DamageSystems.ApplySoundEffects
- All Implemented Interfaces:
ISystem<EntityStore>, QuerySystem<EntityStore>
- Enclosing class:
DamageSystems
An entity ticking system that plays any effects for damage with
Damage.IMPACT_SOUND_EFFECT.-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGroup()getQuery()voidhandle(int index, ArchetypeChunk<EntityStore> archetypeChunk, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer, Damage damage) An overrideable method called to handle an event for a specific archetype chunk.voidhandleInternal(int index, ArchetypeChunk<EntityStore> archetypeChunk, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer, Damage damage) Called to handle an event for a specific archetype chunk, unless the event is cancelled.Methods inherited from class EventSystem
getEventTypeMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ISystem
getDependencies, onSystemRegistered, onSystemUnregisteredMethods inherited from interface QuerySystem
getHierarchyScope, test
-
Constructor Details
-
ApplySoundEffects
public ApplySoundEffects()
-
-
Method Details
-
getQuery
-
handle
public void handle(int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull Damage damage) Description copied from class:EntityEventSystemAn overrideable method called to handle an event for a specific archetype chunk.- Specified by:
handlein classEntityEventSystem<EntityStore, Damage>- 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.damage- The event to be handled.
-
handleInternal
public void handleInternal(int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull Damage damage) Description copied from class:EntityEventSystemCalled to handle an event for a specific archetype chunk, unless the event is cancelled.- Overrides:
handleInternalin classEntityEventSystem<EntityStore, Damage>- 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.damage- The event to be handled.
-
getGroup
- Returns:
- the group this system is a part of or
null. - See Also:
-