Package org.bukkit.event.block
Class BellResonateEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BellResonateEvent
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
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.block.BlockEvent
block
-
Constructor Summary
ConstructorDescriptionBellResonateEvent
(@NotNull Block theBlock, @NotNull List<LivingEntity> resonatedEntities) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList
Get a mutable list of allLivingEntities
to be highlighted by the bell's resonating.Methods inherited from class org.bukkit.event.block.BlockEvent
getBlock
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
BellResonateEvent
-
-
Method Details
-
getResonatedEntities
Get a mutable list of allLivingEntities
to 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.
- Returns:
- a list of resonated entities
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-