Contents
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 Summary
Modifier and TypeMethodDescriptionvoidcheckKilledEntity(Store<EntityStore> store, Ref<EntityStore> npcRef, Objective objective, NPCEntity npc, Damage damageInfo) Checks if the killed entity satisfies the conditions of the kill task and updates the objective progress accordingly.
-
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- TheStore<EntityStore>for component access.npcRef- The entity reference of the killed NPC entity.objective- TheObjectiveassociated with this kill task.npc- TheNPCEntitycomponent of the killed entity.damageInfo- TheDamageinformation related to the kill event.
-