Package dev.selena.luacore.utils.objects
Class RewardItem
java.lang.Object
dev.selena.luacore.utils.objects.RewardItem
An example class for the
RandomCollection
class-
Constructor Summary
ConstructorDescriptionRewardItem
(org.bukkit.inventory.ItemStack rewardItem, String rewardName, String rewardCommand) Used to setup the reward -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if the reward has a command setboolean
Checks if the reward has an item set
-
Constructor Details
-
RewardItem
public RewardItem(@Nullable org.bukkit.inventory.ItemStack rewardItem, @Nullable String rewardName, @Nullable String rewardCommand) Used to setup the reward- Parameters:
rewardItem
- The item if you want it to be itemrewardName
- The Reward name can be used for messagesrewardCommand
- If you want the reward to have a command
-
-
Method Details
-
isItemReward
public boolean isItemReward()Checks if the reward has an item set- Returns:
- True if there is an item set
-
isCommandReward
public boolean isCommandReward()Checks if the reward has a command set- Returns:
- True if there is a command set
-