1package com.runehive.game.world.entity.combat.attack.listener.item;
3import com.runehive.net.packet.out.SendMessage;
4import com.runehive.game.world.entity.combat.CombatType;
5import com.runehive.game.world.entity.combat.attack.listener.ItemCombatListenerSignature;
6import com.runehive.game.world.entity.combat.attack.listener.SimplifiedListener;
7import com.runehive.game.world.entity.combat.hit.Hit;
8import com.runehive.game.world.entity.mob.Mob;
9import com.runehive.game.world.entity.mob.player.Player;
25 defender.
send(
new SendMessage(
"The Phoenix necklace of life saves you but was destroyed in the process"));
27 defender.
getCombat().removeListener(
this);
void hit(T attacker, Mob defender, Hit hit)
Handles the Pheonix necklace listener.
void block(Mob attacker, Player defender, Hit hit, CombatType combatType)
A Hit object holds the damage amount and hitsplat data.
This class represents a character controlled by a player.
final Equipment equipment
void send(OutgoingPacket encoder)
Combat< Player > getCombat()
The combat of the mob.
boolean remove(Item item, int preferredIndex, boolean refresh)
Removes an item from the equipment container.
The OutgoingPacket that sends a message to a Players chatbox in the client.