Interface DamageTypeProvider


public interface DamageTypeProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    dealDamage(org.bukkit.entity.LivingEntity entity, double amount, String damageType, org.bukkit.entity.LivingEntity damager)
     
     
     
  • Method Details

    • pluginName

      String pluginName()
    • getNamespace

      String getNamespace()
    • dealDamage

      boolean dealDamage(@NotNull org.bukkit.entity.LivingEntity entity, double amount, String damageType, @Nullable org.bukkit.entity.LivingEntity damager)
      Parameters:
      entity - entity to deal damage to
      amount - amount of damage to deal
      damageType - type of damage to deal, may or may not be namespaced
      damager - entity to which the damage should be attributed
      Returns:
      whether the damage could be dealt