Class GroupItems

java.lang.Object
xyz.geik.farmer.helpers.gui.GroupItems

public class GroupItems extends Object
Main gui helper methods can be seen here.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor of class
  • Method Summary

    Modifier and Type
    Method
    Description
    static @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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 object
      farmerItem - 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