Class RewardItem

java.lang.Object
dev.selena.luacore.utils.objects.RewardItem

public class RewardItem extends Object
An example class for the RandomCollection class
  • 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 item
      rewardName - The Reward name can be used for messages
      rewardCommand - 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