Contents
Class CraftRecipeEvent
java.lang.Object
com.hypixel.hytale.component.system.EcsEvent
com.hypixel.hytale.component.system.CancellableEcsEvent
com.hypixel.hytale.server.core.event.events.ecs.CraftRecipeEvent
- All Implemented Interfaces:
ICancellableEcsEvent
- Direct Known Subclasses:
CraftRecipeEvent.Post, CraftRecipeEvent.Pre
An event that is triggered when a recipe is being crafted.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn event that is triggered after a recipe is crafted.static final classAn event that is triggered before a recipe is crafted. -
Constructor Summary
ConstructorsConstructorDescriptionCraftRecipeEvent(CraftingRecipe craftedRecipe, int quantity) Default Constructor for aCraftRecipeEventinstance. -
Method Summary
Methods inherited from class CancellableEcsEvent
isCancelled, setCancelled
-
Constructor Details
-
CraftRecipeEvent
Default Constructor for aCraftRecipeEventinstance.- Parameters:
craftedRecipe- The recipe that was crafted.quantity- The quantity of the recipe crafted.
-
-
Method Details
-
getCraftedRecipe
- Returns:
- The recipe that was crafted.
-
getQuantity
public int getQuantity()- Returns:
- The quantity of the recipe crafted.
-