Package com.ranull.graves.listener
Class BlockBurnAndIgniteListener
java.lang.Object
com.ranull.graves.listener.BlockBurnAndIgniteListener
- All Implemented Interfaces:
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 -
Constructor Summary
ConstructorsConstructorDescriptionBlockBurnAndIgniteListener
(Graves plugin) Constructs a new BlockBurnAndIgniteListener with the specified Graves plugin. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Field Details
-
plugin
-
-
Constructor Details
-
BlockBurnAndIgniteListener
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.
-