Interface BuildMcAPI


public interface BuildMcAPI
The primary API interface for BuildMC.

External plugins can use this interface to interact with BuildMC's core systems, access registries, modify behavior, and hook into extension points.

  • Method Details

    • getPlugin

      @NotNull @NotNull org.bukkit.plugin.Plugin getPlugin()
      Gets the Bukkit plugin instance of BuildMC.
      Returns:
      the plugin instance
    • editConfiguration

      void editConfiguration(@NotNull @NotNull Consumer<org.bukkit.configuration.file.FileConfiguration> consumer)
      Uses a Consumer to change the contents of the core configuration before the core plugin finishes loading.
      Parameters:
      consumer - A consumer to apply changes to the core configuration
    • getMainClass

      @NotNull @NotNull MainClass getMainClass()
      Gets the main class instance of BuildMC.
      Returns:
      the main class instance
    • getSoundManager

      @NotNull @NotNull SoundManager getSoundManager()
      Gets the SoundManager used by BuildMC.
      Returns:
      the SoundManager instance
    • getClaimManager

      ClaimManager getClaimManager()
      Gets the ClaimManager
      Returns:
      the ClaimManager instance
    • getEndManager

      EndManager getEndManager()
      Gets the EndManager
      Returns:
      the EndManager instance
    • getElytraManager

      ElytraManager getElytraManager()
      Gets the ElytraManager
      Returns:
      the ElytraManager instance
    • getRegistriesHolder

      @NotNull @NotNull RegistriesHolder getRegistriesHolder()