1package com.runehive.game.world.entity.combat.hit;
3import java.util.function.Function;
35 this.damage = totalDamage;
168 this.damage = other.
damage;
void setAccurate(boolean accurate)
Hitsplat hitsplat
The hitsplat type.
int getDamage()
Gets the damage amount.
Hit(int damage, HitIcon hitIcon)
Constructs a new Hit object.
int damage
The damage amount.
Hit(int damage, Hitsplat hitsplat, HitIcon hitIcon, boolean accurate)
Constructs a new Hit object.
void setIcon(HitIcon hitIcon)
Sets the hit icon.
Hit(int damage)
Constructs a new Hit object.
Hit(int damage, Hitsplat hitsplat, HitIcon hitIcon)
Constructs a new Hit object.
Hit(Hit[] multipleHits)
Constructs a new Hit object.
Hitsplat getHitsplat()
Gets the damage type.
boolean accurate
Whether or not this hit is accurate.
HitIcon getHitIcon()
Gets the hit icon.
void setDamage(int damage)
Sets the hit damage.
Hit(int damage, Hitsplat hitsplat)
Constructs a new Hit object.
void modifyDamage(Function< Integer, Integer > modifier)
Sets the hit damage with a function.
void setHitsplat(Hitsplat hitsplat)
boolean isAccurate()
Checks if the hit is accurate.
HitIcon hitIcon
The hit icon.
The enumerated type whose elements represent the hit icon of a Hit.
NONE
Represents no hit icon at all.
NORMAL
Represents a normal hit type.