Class PrepareCardCraftEvent
-
- All Implemented Interfaces:
-
org.bukkit.event.Cancellable
public class PrepareCardCraftEvent extends PlayerEvent implements CancellableCalled before an item is crafted in the Card Workbench.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPrepareCardCraftEvent.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Array<ItemStack>matrixprivate ItemStackresultpublic final static PrepareCardCraftEvent.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description PrepareCardCraftEvent(Player player, Array<ItemStack> matrix, ItemStack result)
-
Method Summary
Modifier and Type Method Description final Array<ItemStack>getMatrix()The matrix of items used to craft the item. final ItemStackgetResult()The result of the crafting. final UnitsetResult(ItemStack result)The result of the crafting. HandlerListgetHandlers()BooleanisCancelled()UnitsetCancelled(Boolean cancel)-
-
Constructor Detail
-
PrepareCardCraftEvent
PrepareCardCraftEvent(Player player, Array<ItemStack> matrix, ItemStack result)
-
-
Method Detail
-
getResult
final ItemStack getResult()
The result of the crafting.
-
getHandlers
HandlerList getHandlers()
-
isCancelled
Boolean isCancelled()
-
setCancelled
Unit setCancelled(Boolean cancel)
-
-
-
-