Class WbsRegionUtils

java.lang.Object
wbs.utils.util.pluginhooks.WbsRegionUtils

public final class WbsRegionUtils extends Object
A static class that centralizes calls to WbsRegionHooks, allowing all installed supported plugins to be queried at once
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canBuildAt(org.bukkit.Location loc, org.bukkit.entity.Player player)
    Check if the given player can build in the given location
    static boolean
    canDealDamage(org.bukkit.entity.Entity attacker, org.bukkit.entity.Entity victim)
    Check if the attacking entity is allowed to damage the victim

    Methods inherited from class java.lang.Object

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

    • canBuildAt

      public static boolean canBuildAt(org.bukkit.Location loc, org.bukkit.entity.Player player)
      Check if the given player can build in the given location
      Parameters:
      loc - The location to check
      player - The player to check for
      Returns:
      True if the player can build at that location
    • canDealDamage

      public static boolean canDealDamage(org.bukkit.entity.Entity attacker, org.bukkit.entity.Entity victim)
      Check if the attacking entity is allowed to damage the victim
      Parameters:
      attacker - The entity attempting to deal damage
      victim - The entity being damaged
      Returns:
      True if the attacker can damage the victim