Class WorldGuardHK

java.lang.Object
studio.magemonkey.codex.manager.IListener<CodexEngine>
studio.magemonkey.codex.hooks.NHook<CodexEngine>
studio.magemonkey.codex.hooks.external.WorldGuardHK
All Implemented Interfaces:
org.bukkit.event.Listener, studio.magemonkey.codex.manager.AbstractListener

public class WorldGuardHK extends NHook<CodexEngine>
  • Field Summary

    Fields inherited from class studio.magemonkey.codex.hooks.NHook

    state

    Fields inherited from class studio.magemonkey.codex.manager.IListener

    plugin
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canFights(org.bukkit.entity.Entity damager, org.bukkit.entity.Entity victim)
     
    com.sk89q.worldguard.protection.regions.ProtectedRegion
    getProtectedRegion(org.bukkit.entity.Entity entity)
     
    com.sk89q.worldguard.protection.regions.ProtectedRegion
    getProtectedRegion(org.bukkit.Location loc)
     
    Collection<com.sk89q.worldguard.protection.regions.ProtectedRegion>
    getProtectedRegions(org.bukkit.World w)
     
    getRegion(org.bukkit.entity.Entity entity)
     
    getRegion(org.bukkit.Location loc)
     
    boolean
    isInRegion(org.bukkit.entity.Entity entity, String region)
     
    studio.magemonkey.codex.hooks.HookState
     
    void
     

    Methods inherited from class studio.magemonkey.codex.hooks.NHook

    equals, getPlugin, getState, hashCode, hook, unhook

    Methods inherited from class studio.magemonkey.codex.manager.IListener

    registerListeners

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface studio.magemonkey.codex.manager.AbstractListener

    unregisterListeners
  • Constructor Details

    • WorldGuardHK

      public WorldGuardHK(@NotNull CodexEngine plugin)
  • Method Details

    • setup

      @NotNull public studio.magemonkey.codex.hooks.HookState setup()
      Specified by:
      setup in class NHook<CodexEngine>
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in class NHook<CodexEngine>
    • canFights

      public boolean canFights(@NotNull org.bukkit.entity.Entity damager, @NotNull org.bukkit.entity.Entity victim)
    • isInRegion

      public boolean isInRegion(@NotNull org.bukkit.entity.Entity entity, @NotNull String region)
    • getRegion

      @NotNull public String getRegion(@NotNull org.bukkit.entity.Entity entity)
    • getRegion

      @NotNull public String getRegion(@NotNull org.bukkit.Location loc)
    • getProtectedRegion

      @Nullable public com.sk89q.worldguard.protection.regions.ProtectedRegion getProtectedRegion(@NotNull org.bukkit.entity.Entity entity)
    • getProtectedRegion

      @Nullable public com.sk89q.worldguard.protection.regions.ProtectedRegion getProtectedRegion(@NotNull org.bukkit.Location loc)
    • getProtectedRegions

      @NotNull public Collection<com.sk89q.worldguard.protection.regions.ProtectedRegion> getProtectedRegions(@NotNull org.bukkit.World w)