Class NexoHook

java.lang.Object
valorless.rarespawns.hooks.NexoHook

public class NexoHook extends Object
Integration helper for Nexo. 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 Nexo block id.
    static String
    Returns the place sound key for a Nexo note block mechanic id.
    static org.bukkit.inventory.ItemStack
    Returns a Nexo item ItemStack from its id.
    static String
    getItemId(org.bukkit.inventory.ItemStack item)
     
    static org.bukkit.plugin.java.JavaPlugin
    Returns the Nexo plugin instance.
    static void
    Attempts to detect Nexo and logs whether integration is active.
    static boolean
    Returns true when Nexo is present on the server.
    static Boolean
    isNexoBlock(org.bukkit.block.Block block)
    Checks if the given block is a Nexo custom block.
    static Boolean
    isNexoBlock(org.bukkit.inventory.ItemStack item)
    Checks if the given item is a Nexo custom block.
    static Boolean
    isNexoItem(org.bukkit.inventory.ItemStack item)
    Checks if the given item is a Nexo custom item.
    static void
    placeBlock(String id, org.bukkit.block.Block block)
    Places a Nexo 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

    • NexoHook

      public NexoHook()
  • Method Details

    • Hook

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

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

      public static org.bukkit.plugin.java.JavaPlugin getPlugin()
      Returns the Nexo plugin instance.
    • isNexoItem

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

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

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

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

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

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

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

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