Class HavenBagsHook

java.lang.Object
valorless.rarespawns.hooks.HavenBagsHook

public class HavenBagsHook extends Object
Integration helper for HavenBags. Provides detection, logging, and access to the plugin instance.

Notes:
Uses HavenBags' own Lang for parsing and localization

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.inventory.ItemStack
    createBag(int size)
     
    static org.bukkit.inventory.ItemStack
    createBag(int size, boolean binding)
     
    static org.bukkit.inventory.ItemStack
     
    static valorless.havenbags.datamodels.Data
     
    static valorless.havenbags.datamodels.Data
    getBagData(org.bukkit.inventory.ItemStack item)
     
    static valorless.valorlessutils.config.Config
     
    static org.bukkit.plugin.java.JavaPlugin
    Returns the HavenBags plugin instance.
    static void
    Attempts to detect HavenBags and logs whether integration is active.
    static boolean
    Returns true when HavenBags is present on the server.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HavenBagsHook

      public HavenBagsHook()
  • Method Details

    • Hook

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

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

      public static org.bukkit.plugin.java.JavaPlugin getInstance()
      Returns the HavenBags plugin instance.
    • createBag

      public static org.bukkit.inventory.ItemStack createBag(int size)
    • createUnboundBag

      public static org.bukkit.inventory.ItemStack createUnboundBag(String bagID)
    • getBagData

      public static valorless.havenbags.datamodels.Data getBagData(org.bukkit.inventory.ItemStack item)
    • getBagData

      public static valorless.havenbags.datamodels.Data getBagData(String bagID)
    • getConfig

      public static valorless.valorlessutils.config.Config getConfig()
    • createBag

      public static org.bukkit.inventory.ItemStack createBag(int size, boolean binding)