Class ObfuscatedReward

java.lang.Object
com.Moshu.TreasureHunt.Components.Rewards.ObfuscatedReward

public class ObfuscatedReward extends Object
Represents an obfuscated reward item used to hide the true identity of treasure rewards. This class manages placeholder items that are shown to players instead of the actual rewards until they interact with them. Supports various item types including vanilla items, ItemsAdder, Oraxen, and Nexo items.
  • Constructor Details

    • ObfuscatedReward

      public ObfuscatedReward(String itemStr, String name, List<String> lore)
      Creates a new obfuscated reward with the specified configuration.
      Parameters:
      itemStr - The item identifier string
      name - The display name of the obfuscated item
      lore - The lore text for the obfuscated item
  • Method Details

    • getItemId

      public String getItemId()
    • getName

      public String getName()
    • getLore

      public List<String> getLore()
    • isOraxen

      public boolean isOraxen()
    • isNexo

      public boolean isNexo()
    • isItemsAdder

      public boolean isItemsAdder()
    • get

      public org.bukkit.inventory.ItemStack get()