public class PlayerLoomPatternSelectEvent extends PlayerEvent implements Cancellable
Event.Result
player
Constructor and Description |
---|
PlayerLoomPatternSelectEvent(@NotNull Player player,
@NotNull LoomInventory loomInventory,
@NotNull PatternType patternType) |
Modifier and Type | Method and Description |
---|---|
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
@NotNull LoomInventory |
getLoomInventory()
Gets the loom inventory involved.
|
@NotNull 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(@NotNull PatternType patternType)
Sets the pattern type selected.
|
getPlayer
callEvent, getEventName, isAsynchronous
public PlayerLoomPatternSelectEvent(@NotNull @NotNull Player player, @NotNull @NotNull LoomInventory loomInventory, @NotNull @NotNull PatternType patternType)
@NotNull public @NotNull LoomInventory getLoomInventory()
@NotNull public @NotNull PatternType getPatternType()
public void setPatternType(@NotNull @NotNull PatternType patternType)
patternType
- the pattern typepublic boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this event@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.