Package xyz.geik.farmer.helpers.gui
Class GroupItems
java.lang.Object
xyz.geik.farmer.helpers.gui.GroupItems
Main gui helper methods
can be seen here.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.inventory.ItemStack
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
getUserItem
(@NotNull User user) User item which display in UserGui It always player head.
-
Constructor Details
-
GroupItems
public GroupItems()Constructor of class
-
-
Method Details
-
getGroupItem
@NotNull public static @NotNull org.bukkit.inventory.ItemStack getGroupItem(@NotNull @NotNull Farmer farmer, @NotNull @NotNull FarmerItem farmerItem) Farmer stock item which can be anything in items.yml It also calculates stock and percent for display stock. Stock can be seen by color of lore or bar in lore- Parameters:
farmer
- farmer objectfarmerItem
- item of farmer- Returns:
- ItemStack of farmer held
-
getUserItem
@NotNull public static @NotNull org.bukkit.inventory.ItemStack getUserItem(@NotNull @NotNull User user) User item which display in UserGui It always player head.- Parameters:
user
- of farmer- Returns:
- ItemStack of user head
-