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
ConstructorsConstructorDescriptionDragonEggFormEvent(Block block, BlockState newState, DragonBattle dragonBattle) -
Method Summary
Modifier and TypeMethodDescriptionGets theDragonBattleassociated with this event.static HandlerListMethods inherited from class org.bukkit.event.block.BlockGrowEvent
getNewState, isCancelled, setCancelledMethods inherited from class org.bukkit.event.block.BlockEvent
getBlockMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
DragonEggFormEvent
-
-
Method Details
-
getDragonBattle
Gets theDragonBattleassociated with this event. Keep in mind that theEnderDragonis already dead when this event is called.- Returns:
- the dragon battle
-
getHandlers
- Overrides:
getHandlersin classBlockFormEvent
-
getHandlerList
-