Package space.subkek.customdiscs.api
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 TypeMethodDescriptionstatic @Nullable CustomDiscsAPIget()Retrieves the instance of the CustomDiscsAPI from the Bukkit Services Manager.@NotNull LavaPlayerManagerbooleanisCustomDisc(@NotNull org.bukkit.inventory.ItemStack item) Checks if the provided ItemStack is registered as a custom music disc.
-
Method Details
-
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
- 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.
-