Cancellablepublic class PlayerElytraBoostEvent extends PlayerEvent implements Cancellable
Event.Resultplayer| Constructor | Description | 
|---|---|
| PlayerElytraBoostEvent(Player player,
                      ItemStack itemStack,
                      Firework firework) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Firework | getFirework() | Get the firework entity that was spawned | 
| static HandlerList | getHandlerList() | |
| HandlerList | getHandlers() | |
| ItemStack | getItemStack() | Get the firework itemstack used | 
| boolean | isCancelled() | Gets the cancellation state of this event. | 
| void | setCancelled(boolean cancel) | Sets the cancellation state of this event. | 
| void | setShouldConsume(boolean consume) | Set whether to consume the firework or not | 
| boolean | shouldConsume() | Get whether to consume the firework or not | 
callEvent, getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPlayer@NotNull public ItemStack getItemStack()
@NotNull public Firework getFirework()
public boolean shouldConsume()
public void setShouldConsume(boolean consume)
consume - True to consume@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this eventCopyright © 2020. All rights reserved.