mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-11-12 06:40:51 +01:00
Added API to check if an entity is bleeding
This commit is contained in:
@@ -107,4 +107,8 @@ public class BleedTimerTask extends BukkitRunnable {
|
||||
bleedList.put(entity, Math.min(newTicks, MAX_BLEED_TICKS));
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isBleeding(LivingEntity entity) {
|
||||
return bleedList.containsKey(entity);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user