Class VoucherItem
java.lang.Object
xyz.geik.farmer.modules.voucher.helper.VoucherItem
VoucherItem class
- Since:
- 1.0.0
- Version:
- 1.0.0
- Author:
- Geik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.inventory.ItemStack
If item has skull it gets item as head with custom head data.static @NotNull org.bukkit.inventory.ItemStack
getVoucherItem
(int level) Get voucher item with level
-
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
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
-