Class FarmerRemoveEvent

java.lang.Object
org.bukkit.event.Event
xyz.geik.farmer.api.handlers.FarmerRemoveEvent

public class FarmerRemoveEvent extends org.bukkit.event.Event
FarmerRemoveEvent is called when a farmer is removed
Author:
poyrazinan
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor of FarmerRemoveEvent class with farmer object as parameter
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Spigot handlers requirement * @return handler list
    org.bukkit.event.HandlerList
    Spigot handlers requirement
    void
    setCancelled(boolean status)
    Sets cancelled state of event

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • FarmerRemoveEvent

      public FarmerRemoveEvent(Farmer farmer)
      Constructor of FarmerRemoveEvent class with farmer object as parameter
      Parameters:
      farmer - Farmer object of event
      See Also:
  • Method Details

    • setCancelled

      public void setCancelled(boolean status)
      Sets cancelled state of event
      Parameters:
      status - Cancelled state of event (true/false)
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Spigot handlers requirement
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      handler list
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Spigot handlers requirement * @return handler list
      Returns:
      HandlerList list