Class RecipeCraftEvent
java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.recipe.RecipeCraftEvent
Called after a custom recipe was crafted or cooked and Zentrix counted it towards its limit.
A notification: the result has been made, the runtime-game counter that
RecipeService#getGlobalCraftCount reads has been advanced, and any crafting reward is on
its way. A block that cooked on its own reports no player. Main thread; only fired while a
listener is registered.
- Since:
- 1.8.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionRecipeCraftEvent(@NotNull ZentrixRecipe recipe, @Nullable org.bukkit.entity.Player player, @Nullable org.bukkit.World world) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListGets the handler list for this event.@NotNull Optional<org.bukkit.entity.Player> The crafting player; empty when a block cooked on its own.@NotNull ZentrixRecipeThe custom recipe.@NotNull Optional<org.bukkit.World> getWorld()The world it was made in, when known.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
RecipeCraftEvent
public RecipeCraftEvent(@NotNull @NotNull ZentrixRecipe recipe, @Nullable @Nullable org.bukkit.entity.Player player, @Nullable @Nullable org.bukkit.World world)
-
-
Method Details
-
getRecipe
The custom recipe. -
getPlayer
The crafting player; empty when a block cooked on its own. -
getWorld
The world it was made in, when known. -
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()Description copied from class:ZentrixEventGets the handler list for this event.- Overrides:
getHandlersin classZentrixEvent- Returns:
- The handler list
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-