public class BeaconEffectEvent extends BlockEvent implements Cancellable
Event.Result
block
Constructor and Description |
---|
BeaconEffectEvent(Block block,
PotionEffect effect,
Player player,
boolean primary) |
Modifier and Type | Method and 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.
|
getBlock
callEvent, getEventName, isAsynchronous
public BeaconEffectEvent(Block block, PotionEffect effect, Player player, boolean primary)
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancelled)
Cancellable
setCancelled
in interface Cancellable
cancelled
- true if you wish to cancel this eventpublic PotionEffect getEffect()
public void setEffect(PotionEffect effect)
effect
- Potion effectpublic Player getPlayer()
public boolean isPrimary()
public HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2021. All rights reserved.