Class BeaconEffectEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
com.destroystokyo.paper.event.block.BeaconEffectEvent
- All Implemented Interfaces:
- Cancellable
Called when a beacon effect is being applied to a player.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.block.BlockEventblock
- 
Constructor SummaryConstructorsConstructorDescriptionBeaconEffectEvent(@NotNull Block block, @NotNull PotionEffect effect, @NotNull Player player, boolean primary) 
- 
Method SummaryModifier and TypeMethodDescriptionGets the potion effect being applied.static @NotNull HandlerListGets the player who the potion effect is being applied to.booleanGets the cancellation state of this event.booleanGets whether the effect is a primary beacon effect.voidsetCancelled(boolean cancelled) Sets the cancellation state of this event.voidsetEffect(@NotNull PotionEffect effect) Sets the potion effect that will be applied.Methods inherited from class org.bukkit.event.block.BlockEventgetBlockMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
BeaconEffectEvent
 
- 
- 
Method Details- 
isCancelledpublic boolean isCancelled()Description copied from interface:CancellableGets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins- Specified by:
- isCancelledin interface- Cancellable
- Returns:
- true if this event is cancelled
 
- 
setCancelledpublic void setCancelled(boolean cancelled) Description copied from interface:CancellableSets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
- setCancelledin interface- Cancellable
- Parameters:
- cancelled- true if you wish to cancel this event
 
- 
getEffectGets the potion effect being applied.- Returns:
- Potion effect
 
- 
setEffectSets the potion effect that will be applied.- Parameters:
- effect- Potion effect
 
- 
getPlayerGets the player who the potion effect is being applied to.- Returns:
- Affected player
 
- 
isPrimarypublic boolean isPrimary()Gets whether the effect is a primary beacon effect.- Returns:
- true if this event represents a primary effect
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-