Class RegisterCustomRecipeEvent
-
- All Implemented Interfaces:
public final class RegisterCustomRecipeEvent extends Event
Called when a recipe registered.
-
-
Field Summary
Fields Modifier and Type Field Description public final static HandlerListHANDLER_LISTprivate final List<CRecipe>recipesprivate final BooleanisAsynchronousprivate final HandlerListhandlersprivate final StringeventName
-
Constructor Summary
Constructors Constructor Description RegisterCustomRecipeEvent(List<CRecipe> recipes, PluginMeta registeredBy, Boolean isAsync)
-
Method Summary
Modifier and Type Method Description final List<CRecipe>getRecipes()HandlerListgetHandlers()final PluginMetaregistererMeta()Returns a plugin metadata that registered recipes. final static HandlerListgetHandlerList()-
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous -
Methods inherited from class io.github.sakaki_aruka.customcrafter.event.RegisterCustomRecipeEvent
getHandlers -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
RegisterCustomRecipeEvent
RegisterCustomRecipeEvent(List<CRecipe> recipes, PluginMeta registeredBy, Boolean isAsync)
- Parameters:
recipes- registered recipe.registeredBy- A plugin metadata that registered recipes.isAsync- Called from async or not (since 5.2.
-
-
Method Detail
-
getRecipes
final List<CRecipe> getRecipes()
-
getHandlers
HandlerList getHandlers()
-
registererMeta
final PluginMeta registererMeta()
Returns a plugin metadata that registered recipes.
If registered by unspecified, returns null.
- Returns:
PluginMeta A plugin metadata
- Since:
5.2.0
-
getHandlerList
final static HandlerList getHandlerList()
-
-
-
-