Class FurnitureBreakListener

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

public class FurnitureBreakListener extends Object implements org.bukkit.event.Listener
Deprecated.
Plugin no longer exists externally Listens for FurnitureBreakEvent and checks if the furniture being broken is associated with a grave.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final FurnitureEngine
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Plugin no longer exists externally Constructs a new FurnitureBreakListener with the specified FurnitureEngine instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    private boolean
    isFurnitureAssociatedWithGrave(com.mira.furnitureengine.events.FurnitureBreakEvent event, org.bukkit.entity.ItemFrame itemFrame)
    Deprecated.
    Plugin no longer exists externally Checks if the furniture being broken is associated with a grave.
    void
    onFurnitureBreak(com.mira.furnitureengine.events.FurnitureBreakEvent event)
    Deprecated.
    Plugin no longer exists externally Handles FurnitureBreakEvent.

    Methods inherited from class java.lang.Object

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

    • furnitureEngine

      private final FurnitureEngine furnitureEngine
      Deprecated.
  • Constructor Details

    • FurnitureBreakListener

      public FurnitureBreakListener(FurnitureEngine furnitureEngine)
      Deprecated.
      Plugin no longer exists externally Constructs a new FurnitureBreakListener with the specified FurnitureEngine instance.
      Parameters:
      furnitureEngine - The FurnitureEngine instance to use.
  • Method Details

    • onFurnitureBreak

      public void onFurnitureBreak(com.mira.furnitureengine.events.FurnitureBreakEvent event)
      Deprecated.
      Plugin no longer exists externally Handles FurnitureBreakEvent. Cancels the event if the furniture being broken is associated with a grave.
      Parameters:
      event - The FurnitureBreakEvent to handle.
    • isFurnitureAssociatedWithGrave

      private boolean isFurnitureAssociatedWithGrave(com.mira.furnitureengine.events.FurnitureBreakEvent event, org.bukkit.entity.ItemFrame itemFrame)
      Deprecated.
      Plugin no longer exists externally Checks if the furniture being broken is associated with a grave.
      Parameters:
      event - The FurnitureBreakEvent.
      itemFrame - The ItemFrame being broken.
      Returns:
      True if the furniture is associated with a grave, false otherwise.