public class PlayerCraftItemEvent extends PlayerEvent implements Cancellable
| Constructor and Description |
|---|
PlayerCraftItemEvent(Player player,
Item item) |
| Modifier and Type | Method and Description |
|---|---|
Item |
getItem()
Gets the item the player wants to craft.
|
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
getPlayerpublic Item getItem()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - set to true if you want to cancel this event.