public class EnchantmentOffer extends Object
Constructor and Description |
---|
EnchantmentOffer(Enchantment enchantment,
int enchantmentLevel,
int cost) |
Modifier and Type | Method and Description |
---|---|
int |
getCost()
Gets the cost in experience levels the player has to pay to enchant his
item with this enchantment.
|
Enchantment |
getEnchantment()
Get the type of the enchantment.
|
int |
getEnchantmentLevel()
Gets the level of the enchantment.
|
void |
setCost(int cost)
Sets the cost in experience levels the player has to pay to enchant his
item with this enchantment
|
void |
setEnchantment(Enchantment enchantment)
Sets the type of the enchantment.
|
void |
setEnchantmentLevel(int enchantmentLevel)
Sets the level of the enchantment.
|
public EnchantmentOffer(Enchantment enchantment, int enchantmentLevel, int cost)
public Enchantment getEnchantment()
public void setEnchantment(Enchantment enchantment)
enchantment
- type of the enchantmentpublic int getEnchantmentLevel()
public void setEnchantmentLevel(int enchantmentLevel)
enchantmentLevel
- level of the enchantmentpublic int getCost()
public void setCost(int cost)
cost
- cost for this enchantmentCopyright © 2021. All rights reserved.