Class CauldronRecipeRegisterEvent

java.lang.Object
org.bukkit.event.Event
wtf.choco.alchema.api.event.CauldronRecipeRegisterEvent

public class CauldronRecipeRegisterEvent
extends org.bukkit.event.Event
Called on startup and on reloads of Alchema to register any third-party recipes.

While CauldronRecipeRegistry.registerCauldronRecipe(CauldronRecipe) may be used directly, it will not be retained when the plugin's reload command is issued by a command executor, therefore it is recommended that registration be done in an event listener for this event instead.

By the time this event has been called, all recipes provided by Alchema will have been registered already.

Author:
Parker Hawke - Choco
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor Description
    CauldronRecipeRegisterEvent​(@NotNull CauldronRecipeRegistry recipeRegistry)
  • Method Summary

    Modifier and Type Method Description
    static @NotNull org.bukkit.event.HandlerList getHandlerList()
    Get the HandlerList instance for this event.
    @NotNull org.bukkit.event.HandlerList getHandlers()  
    @NotNull CauldronRecipeRegistry getRecipeRegistry()
    Get the CauldronRecipeRegistry instance.

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

  • Method Details

    • getRecipeRegistry

      @NotNull public @NotNull CauldronRecipeRegistry getRecipeRegistry()
      Get the CauldronRecipeRegistry instance.
      Returns:
      the recipe registry
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      @NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
      Get the HandlerList instance for this event.
      Returns:
      the handler list