Package valorless.rarespawns.hooks
Class NexoHook
java.lang.Object
valorless.rarespawns.hooks.NexoHook
Integration helper for Nexo.
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 Nexo block id.static StringReturns the place sound key for a Nexo note block mechanic id.static org.bukkit.inventory.ItemStackReturns a Nexo item ItemStack from its id.static StringgetItemId(org.bukkit.inventory.ItemStack item) static org.bukkit.plugin.java.JavaPluginReturns the Nexo plugin instance.static voidHook()Attempts to detect Nexo and logs whether integration is active.static booleanisHooked()Returns true when Nexo is present on the server.static BooleanisNexoBlock(org.bukkit.block.Block block) Checks if the given block is a Nexo custom block.static BooleanisNexoBlock(org.bukkit.inventory.ItemStack item) Checks if the given item is a Nexo custom block.static BooleanisNexoItem(org.bukkit.inventory.ItemStack item) Checks if the given item is a Nexo custom item.static voidplaceBlock(String id, org.bukkit.block.Block block) Places a Nexo block at the specified location.
-
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
Checks if the given item is a Nexo custom item. -
getItemId
-
isNexoBlock
Checks if the given item is a Nexo custom block. -
isNexoBlock
Checks if the given block is a Nexo custom block. -
getItem
Returns a Nexo item ItemStack from its id. -
getBlockData
Returns BlockData for a Nexo block id. -
getBlockPlaceSound
Returns the place sound key for a Nexo note block mechanic id. -
placeBlock
Places a Nexo block at the specified location.
-