1package com.osroyale.game.world.entity.combat.attack.listener;
3import com.osroyale.game.world.entity.combat.CombatType;
4import com.osroyale.game.world.entity.combat.hit.Hit;
5import com.osroyale.game.world.entity.mob.Mob;
9 public static final CombatListener<Mob> CANT_ATTACK =
new SimplifiedListener<Mob>() {
11 public boolean canAttack(Mob attacker, Mob defender) {
17 public boolean withinDistance(T attacker, Mob defender) {
22 public boolean canOtherAttack(Mob attacker, T defender) {
27 public boolean canAttack(T attacker, Mob defender) {
32 public void start(T attacker, Mob defender, Hit[] hits) { }
35 public void attack(T attacker, Mob defender, Hit hit) { }
38 public void hit(T attacker, Mob defender, Hit hit) { }
41 public void block(Mob attacker, T defender, Hit hit, CombatType combatType) { }
44 public void preDeath(Mob attacker, T defender, Hit hit) { }
47 public void onDeath(Mob attacker, T defender, Hit hit) { }
50 public void preKill(Mob attacker, Mob defender, Hit hit) {
54 public void onKill(T attacker, Mob defender, Hit hit) { }
57 public void hitsplat(T attacker, Mob defender, Hit hit) {
61 public void finishIncoming(Mob attacker, T defender) { }
64 public void finishOutgoing(T attacker, Mob defender) { }
67 public void onDamage(T defender, Hit hit) {