Class EntityChangeListener

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

public class EntityChangeListener extends Object implements org.bukkit.event.Listener
Listener for handling EntityChangeBlockEvent to prevent any entities from interacting with blocks in specific areas, such as picking up or placing blocks near graves.
  • Field Summary

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

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

    Modifier and Type
    Method
    Description
    void
    onEntityChangeBlock(org.bukkit.event.entity.EntityChangeBlockEvent event)
    Handles the EntityChangeBlockEvent to prevent any entity from picking up or placing blocks in a grave area.

    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

    • EntityChangeListener

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

    • onEntityChangeBlock

      public void onEntityChangeBlock(org.bukkit.event.entity.EntityChangeBlockEvent event)
      Handles the EntityChangeBlockEvent to prevent any entity from picking up or placing blocks in a grave area.
      Parameters:
      event - The EntityChangeBlockEvent to handle.