Cancellablepublic class PlayerRecipeBookClickEvent extends PlayerEvent implements Cancellable
Event.Resultplayer| Constructor | Description |
|---|---|
PlayerRecipeBookClickEvent(Player player,
NamespacedKey recipe,
boolean makeAll) |
| Modifier and Type | Method | Description |
|---|---|---|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
NamespacedKey |
getRecipe() |
Gets the namespaced key of the recipe that was clicked by the player
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
boolean |
isMakeAll() |
Gets a boolean which indicates whether or not the player requested to make the maximum amount of results.
|
void |
setCancelled(boolean cancel) |
Sets the cancellation state of this event.
|
void |
setMakeAll(boolean makeAll) |
Sets whether or not the maximum amount of results should be made.
|
void |
setRecipe(NamespacedKey recipe) |
Changes what recipe is requested.
|
callEvent, getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPlayerpublic PlayerRecipeBookClickEvent(@NotNull Player player, @NotNull NamespacedKey recipe, boolean makeAll)
@NotNull public NamespacedKey getRecipe()
public void setRecipe(@NotNull NamespacedKey recipe)
recipe - The key of the recipe that should be requestedpublic boolean isMakeAll()
true if shift is pressed while the recipe is clickedpublic void setMakeAll(boolean makeAll)
makeAll - true if the request should attempt to make the maximum amount of resultspublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this event@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2020. All rights reserved.