Class Magic

java.lang.Object
dev.kitteh.factions.integration.Magic
All Implemented Interfaces:
com.elmakers.mine.bukkit.api.entity.TeamProvider, com.elmakers.mine.bukkit.api.magic.MagicProvider, com.elmakers.mine.bukkit.api.protection.BlockBreakManager, com.elmakers.mine.bukkit.api.protection.BlockBuildManager, com.elmakers.mine.bukkit.api.protection.EntityTargetingManager, com.elmakers.mine.bukkit.api.protection.PVPManager, org.bukkit.event.Listener

public class Magic extends Object implements com.elmakers.mine.bukkit.api.protection.BlockBuildManager, com.elmakers.mine.bukkit.api.protection.BlockBreakManager, com.elmakers.mine.bukkit.api.protection.PVPManager, com.elmakers.mine.bukkit.api.entity.TeamProvider, com.elmakers.mine.bukkit.api.protection.EntityTargetingManager, org.bukkit.event.Listener
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canTarget(org.bukkit.entity.Entity source, org.bukkit.entity.Entity target)
     
    boolean
    hasBreakPermission(org.bukkit.entity.Player player, org.bukkit.block.Block block)
     
    boolean
    hasBuildPermission(org.bukkit.entity.Player player, org.bukkit.block.Block block)
     
    static boolean
    init(org.bukkit.plugin.Plugin plugin)
     
    boolean
    isFriendly(org.bukkit.entity.Entity attacker, org.bukkit.entity.Entity entity)
     
    boolean
    isPVPAllowed(org.bukkit.entity.Player player, org.bukkit.Location location)
     

    Methods inherited from class java.lang.Object

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

    • Magic

      public Magic()
  • Method Details

    • init

      public static boolean init(org.bukkit.plugin.Plugin plugin)
    • hasBuildPermission

      public boolean hasBuildPermission(org.bukkit.entity.Player player, org.bukkit.block.Block block)
      Specified by:
      hasBuildPermission in interface com.elmakers.mine.bukkit.api.protection.BlockBuildManager
    • hasBreakPermission

      public boolean hasBreakPermission(org.bukkit.entity.Player player, org.bukkit.block.Block block)
      Specified by:
      hasBreakPermission in interface com.elmakers.mine.bukkit.api.protection.BlockBreakManager
    • isPVPAllowed

      public boolean isPVPAllowed(org.bukkit.entity.Player player, org.bukkit.Location location)
      Specified by:
      isPVPAllowed in interface com.elmakers.mine.bukkit.api.protection.PVPManager
    • isFriendly

      public boolean isFriendly(org.bukkit.entity.Entity attacker, org.bukkit.entity.Entity entity)
      Specified by:
      isFriendly in interface com.elmakers.mine.bukkit.api.entity.TeamProvider
    • canTarget

      public boolean canTarget(org.bukkit.entity.Entity source, org.bukkit.entity.Entity target)
      Specified by:
      canTarget in interface com.elmakers.mine.bukkit.api.protection.EntityTargetingManager