Class BlockBurnAndIgniteListener

java.lang.Object
com.ranull.graves.listener.BlockBurnAndIgniteListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class BlockBurnAndIgniteListener extends Object implements org.bukkit.event.Listener
Listens for BlockBurnEvent and BlockIgniteEvent to prevent lava from burning or destroying blocks within a grave's radius.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Graves
     
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    onBlockBurn(org.bukkit.event.block.BlockBurnEvent event)
    Handles BlockBurnEvent to prevent blocks from burning if within a grave's radius.
    void
    onBlockIgnite(org.bukkit.event.block.BlockIgniteEvent event)
    Handles BlockIgniteEvent to prevent blocks from being ignited within a grave's radius.
    void
    onBlockSpread(org.bukkit.event.block.BlockSpreadEvent event)
    Handles BlockSpreadEvent to prevent from spreading if within a grave's radius, like fire.

    Methods inherited from class java.lang.Object

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

    • plugin

      private final Graves plugin
  • Constructor Details

    • BlockBurnAndIgniteListener

      public BlockBurnAndIgniteListener(Graves plugin)
      Constructs a new BlockBurnAndIgniteListener with the specified Graves plugin.
      Parameters:
      plugin - The Graves plugin instance.
  • Method Details

    • onBlockSpread

      public void onBlockSpread(org.bukkit.event.block.BlockSpreadEvent event)
      Handles BlockSpreadEvent to prevent from spreading if within a grave's radius, like fire.
      Parameters:
      event - The BlockSpreadEvent to handle.
    • onBlockBurn

      public void onBlockBurn(org.bukkit.event.block.BlockBurnEvent event)
      Handles BlockBurnEvent to prevent blocks from burning if within a grave's radius.
      Parameters:
      event - The BlockBurnEvent to handle.
    • onBlockIgnite

      public void onBlockIgnite(org.bukkit.event.block.BlockIgniteEvent event)
      Handles BlockIgniteEvent to prevent blocks from being ignited within a grave's radius.
      Parameters:
      event - The BlockIgniteEvent to handle.