Class DefaultCombatProtection

java.lang.Object
com.sucy.skill.api.DefaultCombatProtection
All Implemented Interfaces:
CombatProtection

public class DefaultCombatProtection extends Object implements CombatProtection
ProSkillAPI © 2023 com.sucy.skill.data.DefaultCombatProtection
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canAttack(org.bukkit.entity.LivingEntity attacker, org.bukkit.entity.LivingEntity defender)
     
    boolean
    canAttack(org.bukkit.entity.LivingEntity attacker, org.bukkit.entity.LivingEntity defender, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause)
     
    boolean
    canAttack(org.bukkit.entity.Player attacker, org.bukkit.entity.LivingEntity defender)
     
    boolean
    canAttack(org.bukkit.entity.Player attacker, org.bukkit.entity.LivingEntity defender, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause)
     
    boolean
    canAttack(org.bukkit.entity.Player attacker, org.bukkit.entity.Player defender)
     
    boolean
    canAttack(org.bukkit.entity.Player attacker, org.bukkit.entity.Player defender, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultCombatProtection

      public DefaultCombatProtection()
  • Method Details

    • canAttack

      public boolean canAttack(org.bukkit.entity.Player attacker, org.bukkit.entity.Player defender)
      Specified by:
      canAttack in interface CombatProtection
    • canAttack

      public boolean canAttack(org.bukkit.entity.Player attacker, org.bukkit.entity.LivingEntity defender)
      Specified by:
      canAttack in interface CombatProtection
    • canAttack

      public boolean canAttack(org.bukkit.entity.LivingEntity attacker, org.bukkit.entity.LivingEntity defender)
      Specified by:
      canAttack in interface CombatProtection
    • canAttack

      public boolean canAttack(org.bukkit.entity.Player attacker, org.bukkit.entity.Player defender, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause)
      Specified by:
      canAttack in interface CombatProtection
    • canAttack

      public boolean canAttack(org.bukkit.entity.Player attacker, org.bukkit.entity.LivingEntity defender, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause)
      Specified by:
      canAttack in interface CombatProtection
    • canAttack

      public boolean canAttack(org.bukkit.entity.LivingEntity attacker, org.bukkit.entity.LivingEntity defender, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause)
      Specified by:
      canAttack in interface CombatProtection