Interface KillTask

All Known Implementing Classes:
BountyObjectiveTask, KillNPCObjectiveTask, KillObjectiveTask, KillSpawnBeaconObjectiveTask, KillSpawnMarkerObjectiveTask

public interface KillTask
An interface representing a task that involves killing an NPC entity.
  • Method Details

    • checkKilledEntity

      void checkKilledEntity(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> npcRef, @Nonnull Objective objective, @Nonnull NPCEntity npc, @Nonnull Damage damageInfo)
      Checks if the killed entity satisfies the conditions of the kill task and updates the objective progress accordingly.
      Parameters:
      store - The Store<EntityStore> for component access.
      npcRef - The entity reference of the killed NPC entity.
      objective - The Objective associated with this kill task.
      npc - The NPCEntity component of the killed entity.
      damageInfo - The Damage information related to the kill event.