Added API to check if an entity is bleeding

This commit is contained in:
TfT_02
2014-05-02 19:41:44 +02:00
parent 66a4925371
commit af64bdf742
3 changed files with 11 additions and 0 deletions

View File

@ -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);
}
}