Cancellablepublic class BeaconEffectEvent extends BlockEvent implements Cancellable
Event.Resultblock| Constructor | Description |
|---|---|
BeaconEffectEvent(Block block,
PotionEffect effect,
Player player,
boolean primary) |
| Modifier and Type | Method | Description |
|---|---|---|
PotionEffect |
getEffect() |
Gets the potion effect being applied.
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
Player |
getPlayer() |
Gets the player who the potion effect is being applied to.
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
boolean |
isPrimary() |
Gets whether the effect is a primary beacon effect.
|
void |
setCancelled(boolean cancelled) |
Sets the cancellation state of this event.
|
void |
setEffect(PotionEffect effect) |
Sets the potion effect that will be applied.
|
getBlockcallEvent, getEventName, isAsynchronouspublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true if you wish to cancel this event@NotNull public PotionEffect getEffect()
public void setEffect(@NotNull PotionEffect effect)
effect - Potion effect@NotNull public Player getPlayer()
public boolean isPrimary()
@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2020. All rights reserved.