public class EnchantmentOffer extends Object
| Constructor | Description | 
|---|---|
| EnchantmentOffer(@NotNull Enchantment enchantment,
                int enchantmentLevel,
                int cost) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| int | getCost() | Gets the cost (minimum level) which is displayed as a number on the right
 hand side of the enchantment offer. | 
| @NotNull Enchantment | getEnchantment() | Get the type of the enchantment. | 
| int | getEnchantmentLevel() | Gets the level of the enchantment. | 
| void | setCost(int cost) | Sets the cost (minimum level) which is displayed as a number on the right
 hand side of the enchantment offer. | 
| void | setEnchantment(@NotNull Enchantment enchantment) | Sets the type of the enchantment. | 
| void | setEnchantmentLevel(int enchantmentLevel) | Sets the level of the enchantment. | 
public EnchantmentOffer(@NotNull
                        @NotNull Enchantment enchantment,
                        int enchantmentLevel,
                        int cost)
@NotNull public @NotNull Enchantment getEnchantment()
public void setEnchantment(@NotNull
                           @NotNull 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 © 2020. All rights reserved.