Class VoucherItem

java.lang.Object
xyz.geik.farmer.modules.voucher.helper.VoucherItem

public class VoucherItem extends Object
VoucherItem class
Since:
1.0.0
Version:
1.0.0
Author:
Geik
  • Constructor Details

    • VoucherItem

      public VoucherItem()
      Constructor of class
  • Method Details

    • getVoucherItem

      @NotNull public static @NotNull org.bukkit.inventory.ItemStack getVoucherItem(int level)
      Get voucher item with level
      Parameters:
      level - Integer level of voucher
      Returns:
      ItemStack Item of voucher
    • getItem

      @NotNull public static @NotNull org.bukkit.inventory.ItemStack getItem(String path)
      If item has skull it gets item as head with custom head data. Otherwise, check for material and get item with a material.
      Parameters:
      path - item path
      Returns:
      ItemStack of destination item