Package org.bukkit.event.block
Class CrafterCraftEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.CrafterCraftEvent
- All Implemented Interfaces:
- Cancellable
Event called when a Crafter is about to craft an item.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.block.BlockEventblock
- 
Constructor SummaryConstructorsConstructorDescriptionCrafterCraftEvent(Block theBlock, CraftingRecipe recipe, ItemStack result) Deprecated.CrafterCraftEvent(Block theBlock, CraftingRecipe recipe, ItemStack result, List<ItemStack> remainingItems) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic HandlerListGets the recipe that was used to craft this item.Gets the items that will remain after the recipe has been crafted.Gets the result for the craft.booleanGets the cancellation state of this event.voidsetCancelled(boolean cancel) Sets the cancellation state of this event.voidSets the result of the craft.Methods inherited from class org.bukkit.event.block.BlockEventgetBlockMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details- 
CrafterCraftEvent@Deprecated(since="1.21.4") public CrafterCraftEvent(@NotNull Block theBlock, @NotNull CraftingRecipe recipe, @NotNull ItemStack result) Deprecated.
- 
CrafterCraftEventpublic CrafterCraftEvent(@NotNull Block theBlock, @NotNull CraftingRecipe recipe, @NotNull ItemStack result, @NotNull List<ItemStack> remainingItems) 
 
- 
- 
Method Details- 
getResultGets the result for the craft.- Returns:
- the result for the craft
 
- 
setResultSets the result of the craft.- Parameters:
- result- the result of the craft
 
- 
getRemainingItemsGets the items that will remain after the recipe has been crafted.- Returns:
- a list of the remaining items
 
- 
getRecipeGets the recipe that was used to craft this item.- Returns:
- the recipe that was used to craft this item
 
- 
isCancelledpublic boolean isCancelled()Description copied from interface:CancellableGets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins- Specified by:
- isCancelledin interface- Cancellable
- Returns:
- true if this event is cancelled
 
- 
setCancelledpublic void setCancelled(boolean cancel) Description copied from interface:CancellableSets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
- setCancelledin interface- Cancellable
- Parameters:
- cancel- true if you wish to cancel this event
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-