Interface CustomDiscsAPI


public interface CustomDiscsAPI
The primary entry point for the CustomDiscs API. Provides access to the audio playback manager and disc identification utilities.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable CustomDiscsAPI
    get()
    Retrieves the instance of the CustomDiscsAPI from the Bukkit Services Manager.
     
    boolean
    isCustomDisc(@NotNull org.bukkit.inventory.ItemStack item)
    Checks if the provided ItemStack is registered as a custom music disc.
  • Method Details

    • get

      @Nullable static @Nullable CustomDiscsAPI get()
      Retrieves the instance of the CustomDiscsAPI from the Bukkit Services Manager.
      Returns:
      The API instance, or null if the plugin is not loaded.
    • getLavaPlayerManager

      @NotNull @NotNull LavaPlayerManager getLavaPlayerManager()
      Returns:
      The interface to get simple access to the LavaPlayerManager.
    • isCustomDisc

      boolean isCustomDisc(@NotNull @NotNull org.bukkit.inventory.ItemStack item)
      Checks if the provided ItemStack is registered as a custom music disc.
      Parameters:
      item - The item to check.
      Returns:
      true if the item is a valid custom disc, false otherwise.