Interface XPrisonAPI


public interface XPrisonAPI
Main API interface for interacting with the X-Prison plugin modules.
  • Method Details

    • getAutoMinerApi

      @NotNull @NotNull XPrisonAutoMinerAPI getAutoMinerApi()
      Gets the AutoMiner module API.
      Returns:
      the AutoMiner API instance
    • getAutoSellApi

      @NotNull @NotNull XPrisonAutoSellAPI getAutoSellApi()
      Gets the AutoSell module API.
      Returns:
      the AutoSell API instance
    • getEnchantsApi

      @NotNull @NotNull XPrisonEnchantsAPI getEnchantsApi()
      Gets the Enchants module API.
      Returns:
      the Enchants API instance
    • getGangsApi

      @NotNull @NotNull XPrisonGangsAPI getGangsApi()
      Gets the Gangs module API.
      Returns:
      the Gangs API instance
    • getGemsApi

      @NotNull @NotNull XPrisonGemsAPI getGemsApi()
      Gets the Gems module API.
      Returns:
      the Gems API instance
    • getHistoryApi

      @NotNull @NotNull XPrisonHistoryAPI getHistoryApi()
      Gets the History module API.
      Returns:
      the History API instance
    • getMinesApi

      @NotNull @NotNull XPrisonMinesAPI getMinesApi()
      Gets the Mines module API.
      Returns:
      the Mines API instance
    • getMultipliersApi

      @NotNull @NotNull XPrisonMultipliersAPI getMultipliersApi()
      Gets the Multipliers module API.
      Returns:
      the Multipliers API instance
    • getPickaxeLevelsApi

      @NotNull @NotNull XPrisonPickaxeLevelsAPI getPickaxeLevelsApi()
      Gets the Pickaxe Levels module API.
      Returns:
      the Pickaxe Levels API instance
    • getPrestigesApi

      @NotNull @NotNull XPrisonPrestigesAPI getPrestigesApi()
      Gets the Prestiges module API.
      Returns:
      the Prestiges API instance
    • getRanksApi

      @NotNull @NotNull XPrisonRanksAPI getRanksApi()
      Gets the Ranks module API.
      Returns:
      the Ranks API instance
    • getTokensApi

      @NotNull @NotNull XPrisonTokensAPI getTokensApi()
      Gets the Tokens module API.
      Returns:
      the Tokens API instance
    • getBombsApi

      @NotNull @NotNull XPrisonBombsAPI getBombsApi()
      Gets the Bombs module API.
      Returns:
      the Bombs API instance
    • getInstance

      @NotNull static @NotNull XPrisonAPI getInstance()
      Gets the singleton instance of the XPrisonAPI.
      Returns:
      the XPrisonAPI instance
      Throws:
      IllegalStateException - if the API has not been initialized
    • setInstance

      static void setInstance(@NotNull @NotNull XPrisonAPI instance)
      Sets the singleton instance of the XPrisonAPI.
      Parameters:
      instance - the API instance to set
      Throws:
      IllegalStateException - if the API is already initialized