类 EnchantmentOffer
java.lang.Object
org.bukkit.enchantments.EnchantmentOffer
A class for the available enchantment offers in the enchantment table.
-
构造器概要
-
方法概要
修饰符和类型方法说明int
getCost()
Gets the cost in experience levels the player has to pay to enchant his item with this enchantment.Get the type of the enchantment.int
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 enchantmentvoid
setEnchantment
(Enchantment enchantment) Sets the type of the enchantment.void
setEnchantmentLevel
(int enchantmentLevel) Sets the level of the enchantment.
-
构造器详细资料
-
EnchantmentOffer
-
-
方法详细资料
-
getEnchantment
Get the type of the enchantment.- 返回:
- type of enchantment
-
setEnchantment
Sets the type of the enchantment.- 参数:
enchantment
- type of the enchantment
-
getEnchantmentLevel
public int getEnchantmentLevel()Gets the level of the enchantment.- 返回:
- level of the enchantment
-
setEnchantmentLevel
public void setEnchantmentLevel(int enchantmentLevel) Sets the level of the enchantment.- 参数:
enchantmentLevel
- level of the enchantment
-
getCost
public int getCost()Gets the cost in experience levels the player has to pay to enchant his item with this enchantment.- 返回:
- cost for this enchantment
-
setCost
public void setCost(int cost) Sets the cost in experience levels the player has to pay to enchant his item with this enchantment- 参数:
cost
- cost for this enchantment
-