Package xyz.geik.farmer.api.handlers
Class FarmerItemCollectEvent
java.lang.Object
org.bukkit.event.Event
xyz.geik.farmer.api.handlers.FarmerItemCollectEvent
public class FarmerItemCollectEvent
extends org.bukkit.event.Event
FarmerItemCollectEvent fires when Farmer collects an item
- Author:
- poyrazinan
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionFarmerItemCollectEvent
(Farmer farmer, org.bukkit.inventory.ItemStack item, int collectAmount, org.bukkit.event.entity.ItemSpawnEvent event) FarmerItemCollectEvent constructor which takes farmer, item, collectAmount and event as parameters -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
Spigot handlers requirement * @return handler listorg.bukkit.event.HandlerList
Spigot handlers requirementvoid
setCancelled
(boolean status) Cancels the eventMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
FarmerItemCollectEvent
public FarmerItemCollectEvent(Farmer farmer, org.bukkit.inventory.ItemStack item, int collectAmount, org.bukkit.event.entity.ItemSpawnEvent event) FarmerItemCollectEvent constructor which takes farmer, item, collectAmount and event as parametersEvent can be cancelable
- Parameters:
farmer
- Farmer object which collects the itemitem
- Item which is collectedcollectAmount
- Amount of item which is collectedevent
- Inherited class- See Also:
-
-
Method Details
-
setCancelled
public void setCancelled(boolean status) Cancels the event- Parameters:
status
- status of cancel, true for cancel
-
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
-