Class OraxenHook

java.lang.Object
valorless.rarespawns.hooks.OraxenHook

public class OraxenHook extends Object
Integration helper for Oraxen. Provides detection, logging, and access to the plugin instance.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.block.data.BlockData
    Returns BlockData for a Oraxen block id.
    static String
    Returns the place sound key for a Oraxen note block mechanic id.
    static org.bukkit.inventory.ItemStack
    Returns a Oraxen item ItemStack from its id.
    static String
    getItemId(org.bukkit.inventory.ItemStack item)
     
    static org.bukkit.plugin.java.JavaPlugin
    Returns the Oraxen plugin instance.
    static void
    Attempts to detect Oraxen and logs whether integration is active.
    static boolean
    Returns true when Oraxen is present on the server.
    static Boolean
    isOraxenBlock(org.bukkit.block.Block block)
    Checks if the given block is a Oraxen custom block.
    static Boolean
    isOraxenBlock(org.bukkit.inventory.ItemStack item)
    Checks if the given item is a Oraxen custom block.
    static Boolean
    isOraxenItem(org.bukkit.inventory.ItemStack item)
    Checks if the given item is a Oraxen custom item.
    static void
    placeBlock(String id, org.bukkit.block.Block block)
    Places a Oraxen block at the specified location.

    Methods inherited from class java.lang.Object

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

    • OraxenHook

      public OraxenHook()
  • Method Details

    • Hook

      public static void Hook()
      Attempts to detect Oraxen and logs whether integration is active.
    • isHooked

      public static boolean isHooked()
      Returns true when Oraxen is present on the server.
    • getPlugin

      public static org.bukkit.plugin.java.JavaPlugin getPlugin()
      Returns the Oraxen plugin instance.
    • isOraxenItem

      public static Boolean isOraxenItem(org.bukkit.inventory.ItemStack item)
      Checks if the given item is a Oraxen custom item.
    • getItemId

      public static String getItemId(org.bukkit.inventory.ItemStack item)
    • isOraxenBlock

      public static Boolean isOraxenBlock(org.bukkit.inventory.ItemStack item)
      Checks if the given item is a Oraxen custom block.
    • isOraxenBlock

      public static Boolean isOraxenBlock(org.bukkit.block.Block block)
      Checks if the given block is a Oraxen custom block.
    • getItem

      public static org.bukkit.inventory.ItemStack getItem(String id)
      Returns a Oraxen item ItemStack from its id.
    • getBlockData

      public static org.bukkit.block.data.BlockData getBlockData(String id)
      Returns BlockData for a Oraxen block id.
    • getBlockPlaceSound

      public static String getBlockPlaceSound(String id)
      Returns the place sound key for a Oraxen note block mechanic id.
    • placeBlock

      public static void placeBlock(String id, org.bukkit.block.Block block)
      Places a Oraxen block at the specified location.