Uses of Class
xyz.geik.farmer.model.Farmer
Package
Description
-
Uses of Farmer in xyz.geik.farmer.api.handlers
ModifierConstructorDescriptionFarmerBoughtEvent
(Farmer farmer) FarmerBoughtEvent constructorFarmerItemCollectEvent
(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 parametersFarmerItemProductionEvent
(Farmer farmer) FarmerItemProductionEvent constructorFarmerItemSellEvent
(Farmer farmer, FarmerItem farmerItem, org.bukkit.OfflinePlayer offlinePlayer) FarmerItemSellEvent constructor with Farmer, FarmerItem and OfflinePlayerFarmerMainGuiOpenEvent
(org.bukkit.entity.Player player, Farmer farmer, xyz.geik.glib.shades.inventorygui.InventoryGui gui) FarmerMainGuiOpenEvent constructor with player, farmer and gui objects as parametersFarmerModuleGuiCreateEvent
(org.bukkit.entity.Player player, xyz.geik.glib.shades.inventorygui.InventoryGui gui, Farmer farmer) FarmerModuleGuiCreateEvent constructorFarmerRemoveEvent
(Farmer farmer) Constructor of FarmerRemoveEvent class with farmer object as parameterFarmerStorageFullEvent
(Farmer farmer, org.bukkit.inventory.ItemStack item, int leftAmount, org.bukkit.event.entity.ItemSpawnEvent itemSpawnEvent) FarmerStorageFullEvent constructor with farmer, item, leftAmount and itemSpawnEvent parameters -
Uses of Farmer in xyz.geik.farmer.api.managers
-
Uses of Farmer in xyz.geik.farmer.database
Modifier and TypeMethodDescriptionvoid
SQL.addUser
(UUID uuid, String name, FarmerPerm perm, @NotNull Farmer farmer) Adds user to farmer in sqlvoid
SQL.createFarmer
(@NotNull Farmer farmer) Creates farmer on sqlvoid
SQL.removeFarmer
(@NotNull Farmer farmer) Removes farmer from sqlboolean
SQL.removeUser
(@NotNull User user, Farmer farmer) Removes user from farmer in sqlvoid
SQL.saveFarmer
(@NotNull Farmer farmer) Saves farmer sync -
Uses of Farmer in xyz.geik.farmer.guis
Modifier and TypeMethodDescriptionstatic void
Gui main commandstatic void
Shows gui to player also contains event of itstatic void
Shows gui to playerstatic void
Opens gui of users -
Uses of Farmer in xyz.geik.farmer.helpers.gui
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.inventory.ItemStack
GroupItems.getGroupItem
(@NotNull Farmer farmer, @NotNull FarmerItem farmerItem) Farmer stock item which can be anything in items.yml It also calculates stock and percent for display stock.static @NotNull org.bukkit.inventory.ItemStack
GuiHelper.getLevelItem
(@NotNull Farmer farmer, org.bukkit.OfflinePlayer player) Creates level item which is can be in max level.static @NotNull org.bukkit.inventory.ItemStack
GuiHelper.getManageItemOnMain
(Farmer farmer, org.bukkit.OfflinePlayer player) Manage gui item which located on farmer main gui. -
Uses of Farmer in xyz.geik.farmer.model
-
Uses of Farmer in xyz.geik.farmer.model.user
Modifier and TypeMethodDescriptionstatic boolean
User.updateUserRole
(@NotNull User user, Farmer farmer) Change role of user coop to member or member to coop. -
Uses of Farmer in xyz.geik.farmer.modules
Modifier and TypeMethodDescriptionstatic void
FarmerModule.databaseGetAttributes
(Connection con, @NotNull Farmer farmer) Get attributes from databasestatic void
FarmerModule.databaseUpdateAttribute
(@NotNull Connection con, @NotNull Farmer farmer) Save attributes to database -
Uses of Farmer in xyz.geik.farmer.modules.geyser.gui
Modifier and TypeMethodDescriptionstatic void
GeyserGui.showGui
(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack cursorItem, xyz.geik.glib.shades.xseries.XMaterial cursorItemMaterial, Farmer farmer, FarmerItem slotItem) Opens gui to player -
Uses of Farmer in xyz.geik.farmer.modules.production.model
ModifierConstructorDescriptionProductionModel
(@NotNull Farmer farmer, xyz.geik.glib.shades.xseries.XMaterial material, xyz.geik.glib.shades.inventorygui.InventoryGui gui) AverageProduction constructor