Class FarmerStorageFullEvent

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

public class FarmerStorageFullEvent extends org.bukkit.event.Event
FarmerStorageFullEvent fired when farmer storage is full
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
    FarmerStorageFullEvent(Farmer farmer, org.bukkit.inventory.ItemStack item, int leftAmount, org.bukkit.event.entity.ItemSpawnEvent itemSpawnEvent)
    FarmerStorageFullEvent constructor with farmer, item, leftAmount and itemSpawnEvent parameters
  • 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 arg0)
    Cancel status of event
    void
    setDropItem(boolean status)
    Whether to drop the item or not

    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

    • FarmerStorageFullEvent

      public FarmerStorageFullEvent(Farmer farmer, org.bukkit.inventory.ItemStack item, int leftAmount, org.bukkit.event.entity.ItemSpawnEvent itemSpawnEvent)
      FarmerStorageFullEvent constructor with farmer, item, leftAmount and itemSpawnEvent parameters
      Parameters:
      farmer - Farmer object which storage is full
      item - Item which farmer can't add to storage
      leftAmount - Left amount of item which farmer can't add to storage
      itemSpawnEvent - Inherited class
      See Also:
      • ItemSpawnEvent
      • Farmer
      • ItemStack
  • Method Details

    • setCancelled

      public void setCancelled(boolean arg0)
      Cancel status of event
      Parameters:
      arg0 - boolean of cancelled or not default: false
    • setDropItem

      public void setDropItem(boolean status)
      Whether to drop the item or not
      Parameters:
      status - true to drop the item, false to not drop the item
    • 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