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