Class ItemEvent
java.lang.Object
xyz.geik.farmer.listeners.backend.ItemEvent
- All Implemented Interfaces:
org.bukkit.event.Listener
Main event of farmer which collect items to storage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
farmerCollectItemEvent
(@NotNull FarmerItemCollectEvent event) Main event of item collection of farmervoid
itemSpawnEvent
(@NotNull org.bukkit.event.entity.ItemSpawnEvent e) Has Item in farmer Item don't have meta Checks player drop Checks World Checks has farmer on location Checks if farmer closed
-
Constructor Details
-
ItemEvent
public ItemEvent()Constructor of class
-
-
Method Details
-
farmerCollectItemEvent
Main event of item collection of farmer- Parameters:
event
- event of collect event
-
itemSpawnEvent
public void itemSpawnEvent(@NotNull @NotNull org.bukkit.event.entity.ItemSpawnEvent e) Has Item in farmer Item don't have meta Checks player drop Checks World Checks has farmer on location Checks if farmer closed- Parameters:
e
- event of item spawn event
-