Cancellablepublic class PlayerLoomPatternSelectEvent extends PlayerEvent implements Cancellable
Event.Resultplayer| Constructor | Description |
|---|---|
PlayerLoomPatternSelectEvent(Player player,
LoomInventory loomInventory,
PatternType patternType) |
| Modifier and Type | Method | Description |
|---|---|---|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
LoomInventory |
getLoomInventory() |
Gets the loom inventory involved.
|
PatternType |
getPatternType() |
Gets the pattern type selected.
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel) |
Sets the cancellation state of this event.
|
void |
setPatternType(PatternType patternType) |
Sets the pattern type selected.
|
callEvent, getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPlayerpublic PlayerLoomPatternSelectEvent(@NotNull Player player, @NotNull LoomInventory loomInventory, @NotNull PatternType patternType)
@NotNull public LoomInventory getLoomInventory()
@NotNull public PatternType getPatternType()
public void setPatternType(@NotNull PatternType patternType)
patternType - the pattern typepublic 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 © 2021. All rights reserved.