public class PlayerElytraBoostEvent extends PlayerEvent implements Cancellable
Event.Resultplayer| Constructor and Description |
|---|
PlayerElytraBoostEvent(@NotNull Player player,
@NotNull ItemStack itemStack,
@NotNull Firework firework) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Firework |
getFirework()
Get the firework entity that was spawned
|
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
@NotNull 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
|
getPlayercallEvent, getEventName, isAsynchronous@NotNull public @NotNull ItemStack getItemStack()
@NotNull public @NotNull Firework getFirework()
public boolean shouldConsume()
public void setShouldConsume(boolean consume)
consume - True to consume@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull 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 © 2022. All rights reserved.