Package xyz.geik.farmer.api.handlers
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
ConstructorDescriptionFarmerStorageFullEvent
(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 TypeMethodDescriptionstatic org.bukkit.event.HandlerList
Spigot handlers requirement * @return handler listorg.bukkit.event.HandlerList
Spigot handlers requirementvoid
setCancelled
(boolean arg0) Cancel status of eventvoid
setDropItem
(boolean status) Whether to drop the item or notMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
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 fullitem
- Item which farmer can't add to storageleftAmount
- Left amount of item which farmer can't add to storageitemSpawnEvent
- Inherited class- See Also:
-
-
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 classorg.bukkit.event.Event
- Returns:
- handler list
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Spigot handlers requirement * @return handler list- Returns:
- HandlerList list
-