Package valorless.rarespawns.hooks
Class ItemsAdderHook
java.lang.Object
valorless.rarespawns.hooks.ItemsAdderHook
Integration helper for ItemsAdder.
Provides detection, logging, and access to the plugin instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.block.data.BlockDatagetBlockData(String id) Returns BlockData for a ItemsAdder block id.static StringReturns the place sound key for a ItemsAdder note block mechanic id.static org.bukkit.inventory.ItemStackReturns a ItemsAdder item ItemStack from its id.static StringgetItemId(org.bukkit.inventory.ItemStack item) static org.bukkit.plugin.java.JavaPluginReturns the ItemsAdder plugin instance.static voidHook()Attempts to detect ItemsAdder and logs whether integration is active.static booleanisHooked()Returns true when ItemsAdder is present on the server.static BooleanisItemsAdderBlock(org.bukkit.block.Block block) Checks if the given block is a ItemsAdder custom block.static BooleanisItemsAdderBlock(org.bukkit.inventory.ItemStack item) Checks if the given item is a ItemsAdder custom block.static BooleanisItemsAdderItem(org.bukkit.inventory.ItemStack item) Checks if the given item is a ItemsAdder custom item.static voidplaceBlock(String id, org.bukkit.block.Block block) Places a ItemsAdder block at the specified location.
-
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
Checks if the given item is a ItemsAdder custom item. -
getItemId
-
isItemsAdderBlock
Checks if the given item is a ItemsAdder custom block. -
isItemsAdderBlock
Checks if the given block is a ItemsAdder custom block. -
getItem
Returns a ItemsAdder item ItemStack from its id. -
getBlockData
Returns BlockData for a ItemsAdder block id. -
getBlockPlaceSound
Returns the place sound key for a ItemsAdder note block mechanic id. -
placeBlock
Places a ItemsAdder block at the specified location.
-