1package com.runehive.game.world.entity.combat.hit;
3import java.util.function.Function;
23 super(
hit.getDamage(),
hit.getHitsplat(),
hit.getHitIcon(),
hit.isAccurate());
26 this.multipleHitsAllowed =
false;
33 this.multipleHitsAllowed =
true;
final int hitDelay
The hit delay.
boolean getMultipleHitsAllowed()
CombatHit copyAndModify(Function< Integer, Integer > modifier)
Copies and modifies this combat hit.
CombatHit(Hit hit, int hitDelay, int hitsplatDelay)
Constructs a new CombatHit object.
CombatHit(Hit[] hits, int hitDelay, int hitsplatDelay)
final boolean multipleHitsAllowed
final int hitsplatDelay
The hitsplat delay.
Hit(Hit[] multipleHits)
Constructs a new Hit object.
void modifyDamage(Function< Integer, Integer > modifier)
Sets the hit damage with a function.