Class CombatVerifier

java.lang.Object
net.joseplay.allianceutils.api.combat.CombatVerifier

public class CombatVerifier extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addCombat(org.bukkit.entity.Player damaged, org.bukkit.entity.Player damager)
    Adds two players to combat state.
    boolean
    isCombat(org.bukkit.entity.Player player)
    Checks whether the given player is currently in combat.
    boolean
    removeCombat(org.bukkit.entity.Player player)
    Removes a player from combat state.

    Methods inherited from class java.lang.Object

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

    • CombatVerifier

      public CombatVerifier()
  • Method Details

    • isCombat

      public boolean isCombat(org.bukkit.entity.Player player)
      Checks whether the given player is currently in combat.
      Parameters:
      player - the player to check
      Returns:
      true if in combat, false otherwise
    • addCombat

      public boolean addCombat(org.bukkit.entity.Player damaged, org.bukkit.entity.Player damager)
      Adds two players to combat state.
      Parameters:
      damaged - the player who received damage
      damager - the player who caused the damage
      Returns:
      true if applied successfully, false otherwise
    • removeCombat

      public boolean removeCombat(org.bukkit.entity.Player player)
      Removes a player from combat state.
      Parameters:
      player - the player to remove
      Returns:
      true if removed successfully, false otherwise