public class BellResonateEvent extends BlockEvent
Called when a bell resonated after being rung and highlights nearby raiders. A bell will only resonate if raiders are in the vicinity of the bell.
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Fields inherited from class org.bukkit.event.block.BlockEvent
(Block theBlock, List<LivingEntity> resonatedEntities)
Method SummaryModifier and TypeMethodDescription
static HandlerListGet a mutable list of all
LivingEntitiesto be highlighted by the bell's resonating.
Methods inherited from class org.bukkit.event.block.BlockEvent
Methods inherited from class org.bukkit.event.Event
(@NotNull Block theBlock, @NotNull List<LivingEntity> resonatedEntities)
getResonatedEntities@NotNull public List<LivingEntity> getResonatedEntities()Get a mutable list of all
LivingEntitiesto be highlighted by the bell's resonating. This list can be added to or removed from to change which entities are highlighted, and may be empty if no entities were resonated as a result of this event.
While the highlighted entities will change, the particles that display over a resonated entity and their colors will not. This is handled by the client and cannot be controlled by the server.
- a list of resonated entities
getHandlers@NotNull public HandlerList getHandlers()
- Specified by:
getHandlerList@NotNull public static HandlerList getHandlerList()