Package dev.cwhead.GravesX.listener
Class BlockEntityExplodeListener
java.lang.Object
dev.cwhead.GravesX.listener.BlockEntityExplodeListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Listens for both BlockExplodeEvent and EntityExplodeEvent to handle
interactions with grave blocks when they are affected by explosions.
-
Constructor Summary
ConstructorsConstructorDescriptionBlockEntityExplodeListener(Graves plugin) Constructs a new BlockEntityExplodeListener with the specified Graves plugin. -
Method Summary
Modifier and TypeMethodDescriptionvoidonBlockExplode(org.bukkit.event.block.BlockExplodeEvent event) Handles BlockExplodeEvent to manage grave interactions when blocks are exploded by other blocks.voidonEntityExplode(org.bukkit.event.entity.EntityExplodeEvent event) Handles EntityExplodeEvent to manage grave interactions when blocks are exploded by entities.
-
Constructor Details
-
BlockEntityExplodeListener
Constructs a new BlockEntityExplodeListener with the specified Graves plugin.- Parameters:
plugin- The Graves plugin instance.
-
-
Method Details
-
onBlockExplode
public void onBlockExplode(org.bukkit.event.block.BlockExplodeEvent event) Handles BlockExplodeEvent to manage grave interactions when blocks are exploded by other blocks.- Parameters:
event- The BlockExplodeEvent to handle.
-
onEntityExplode
public void onEntityExplode(org.bukkit.event.entity.EntityExplodeEvent event) Handles EntityExplodeEvent to manage grave interactions when blocks are exploded by entities.- Parameters:
event- The EntityExplodeEvent to handle.
-