Class ItemsAdderHook

java.lang.Object
valorless.rarespawns.hooks.ItemsAdderHook

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

    • ItemsAdderHook

      public ItemsAdderHook()
  • Method Details

    • Hook

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

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

      public static org.bukkit.plugin.java.JavaPlugin getPlugin()
      Returns the ItemsAdder plugin instance.
    • isItemsAdderItem

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

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

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

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

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

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

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

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