Class ItemReward
java.lang.Object
com.Moshu.TreasureHunt.Components.Rewards.ItemReward
Represents an item reward that can be given to players during treasure hunts.
 This class manages the configuration and distribution of item rewards,
 supporting various item types including vanilla items, custom items from
 ItemsAdder, Oraxen, Nexo, and MMOItems.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbuild()intintorg.bukkit.inventory.ItemStackFetches the ItemReward object from the config and integrates with custom item plugins to retrieve the final custom ItemStack.getLore()getName()getRange()intbooleanbooleanbooleanisNexo()booleanisOraxen()booleanisTopX(int currentTop) voidsetAmount(int amount) voidsetChance(int chance) voidsetEnchants(List<String> enchants) voidsetIdentifier(String identifier) voidsetItemString(String item) voidvoidsetMenuItem(String menuItem) voidvoidvoidsetRewardToTopX(int rewardToTopX) boolean 
- 
Constructor Details
- 
ItemReward
public ItemReward() 
 - 
 - 
Method Details
- 
getIdentifier
 - 
setIdentifier
 - 
getItemId
 - 
setItemString
 - 
getRewardToTopX
public int getRewardToTopX() - 
setRewardToTopX
public void setRewardToTopX(int rewardToTopX)  - 
isTopX
public boolean isTopX(int currentTop)  - 
shouldGiveOnlyToTopX
public boolean shouldGiveOnlyToTopX() - 
getName
 - 
setName
 - 
getLore
 - 
setLore
 - 
setEnchants
 - 
getAmount
public int getAmount() - 
setAmount
public void setAmount(int amount)  - 
getChance
public int getChance() - 
setChance
public void setChance(int chance)  - 
getRange
 - 
setRange
 - 
getMenuItem
 - 
setMenuItem
 - 
isMMOItem
public boolean isMMOItem() - 
isOraxen
public boolean isOraxen() - 
isNexo
public boolean isNexo() - 
isItemsAdder
public boolean isItemsAdder() - 
build
 - 
getItemStack
public org.bukkit.inventory.ItemStack getItemStack()Fetches the ItemReward object from the config and integrates with custom item plugins to retrieve the final custom ItemStack.- Returns:
 - the Bukkit ItemStack for this ItemReward
 
 
 -