Class BlockEntityExplodeListener

java.lang.Object
dev.cwhead.GravesX.listener.BlockEntityExplodeListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class BlockEntityExplodeListener extends Object implements org.bukkit.event.Listener
Listens for both BlockExplodeEvent and EntityExplodeEvent to handle interactions with grave blocks when they are affected by explosions.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new BlockEntityExplodeListener with the specified Graves plugin.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onBlockExplode(org.bukkit.event.block.BlockExplodeEvent event)
    Handles BlockExplodeEvent to manage grave interactions when blocks are exploded by other blocks.
    void
    onEntityExplode(org.bukkit.event.entity.EntityExplodeEvent event)
    Handles EntityExplodeEvent to manage grave interactions when blocks are exploded by entities.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BlockEntityExplodeListener

      public BlockEntityExplodeListener(Graves plugin)
      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.