Package io.papermc.paper.event.block
Class DragonEggFormEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockGrowEvent
org.bukkit.event.block.BlockFormEvent
io.papermc.paper.event.block.DragonEggFormEvent
- All Implemented Interfaces:
Cancellable
Called when the
EnderDragon
is defeated (killed) in a DragonBattle
,
causing a Material.DRAGON_EGG
(more formally: BlockGrowEvent.getNewState()
)
to possibly appear depending on BlockGrowEvent.isCancelled()
.
This event might be cancelled by default depending on
e.g. DragonBattle.hasBeenPreviouslyKilled()
and server configuration.
-
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
ConstructorDescriptionDragonEggFormEvent
(Block block, BlockState newState, DragonBattle dragonBattle) -
Method Summary
Modifier and TypeMethodDescriptionGets theDragonBattle
associated with this event.static HandlerList
Methods inherited from class org.bukkit.event.block.BlockGrowEvent
getNewState, isCancelled, setCancelled
Methods inherited from class org.bukkit.event.block.BlockEvent
getBlock
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
DragonEggFormEvent
-
-
Method Details
-
getDragonBattle
Gets theDragonBattle
associated with this event. Keep in mind that theEnderDragon
is already dead when this event is called.- Returns:
- the dragon battle
-
getHandlers
- Overrides:
getHandlers
in classBlockFormEvent
-
getHandlerList
-