1package com.runehive.content.activity.impl.fightcaves;
3import com.runehive.game.world.entity.combat.CombatType;
4import com.runehive.game.world.entity.combat.hit.Hit;
5import com.runehive.game.world.entity.mob.Mob;
6import com.runehive.game.world.entity.mob.npc.Npc;
7import com.runehive.content.activity.ActivityListener;
8import com.runehive.util.Utility;
24 if (!defender.
isNpc())
26 if (defender.
id != 3127)
void hit(Mob attacker, Mob defender, Hit hit)
final T activity
The parent activity.
ActivityListener(T activity)
Constructs a new ActivityListener for a activity.
void onDeath(Mob attacker, Mob defender, Hit hit)
FightCavesListener(FightCaves minigame)
Constructs a new FightCavesListener object for a specific FightCaves activity.
void block(Mob attacker, Mob defender, Hit hit, CombatType combatType)
A Hit object holds the damage amount and hitsplat data.
final boolean isNpc()
Check if an entity is an npc.
Represents a non-player character in the in-game world.
Combat< Npc > getCombat()
The combat of the mob.
Handles miscellaneous methods.
static double getPercentageAmount(int progress, int total)
Gets a percentage amount.
static boolean withinDistance(Interactable source, Interactable target, int radius)