Cancellablepublic class PlayerRecipeBookClickEvent extends PlayerEvent implements Cancellable
Event.Resultplayer| Constructor | Description |
|---|---|
PlayerRecipeBookClickEvent(@NotNull Player player,
@NotNull NamespacedKey recipe,
boolean makeAll) |
| Modifier and Type | Method | Description |
|---|---|---|
static @NotNull HandlerList |
getHandlerList() |
|
@NotNull HandlerList |
getHandlers() |
|
@NotNull 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(@NotNull NamespacedKey recipe) |
Changes what recipe is requested.
|
callEvent, getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPlayerpublic PlayerRecipeBookClickEvent(@NotNull
@NotNull Player player,
@NotNull
@NotNull NamespacedKey recipe,
boolean makeAll)
@NotNull public @NotNull NamespacedKey getRecipe()
public void setRecipe(@NotNull
@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 @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2020. All rights reserved.