public interface IEnchantmentDefinition
| Modifier and Type | Method and Description |
|---|---|
boolean |
canApply(IItemStack itemStack) |
boolean |
canApplyAtEnchantmentTable(IItemStack itemStack) |
int |
compare(IEnchantmentDefinition other) |
int |
getID() |
java.lang.Object |
getInternal() |
int |
getMaxEnchantability(int enchantmentLevel) |
int |
getMaxLevel() |
int |
getMinEnchantability(int enchantmentLevel) |
int |
getMinLevel() |
java.lang.String |
getName() |
java.lang.String |
getRegistryName() |
java.lang.String |
getTranslatedName(int enchantmentLevel) |
boolean |
isAllowedOnBooks() |
boolean |
isCompatibleWith(IEnchantmentDefinition other) |
boolean |
isCurse() |
boolean |
isTreasureEnchantment() |
IEnchantment |
makeEnchantment(int level) |
void |
setName(java.lang.String name) |
int getID()
java.lang.String getRegistryName()
java.lang.String getName()
void setName(java.lang.String name)
boolean canApply(IItemStack itemStack)
boolean canApplyAtEnchantmentTable(IItemStack itemStack)
int getMaxLevel()
int getMinLevel()
int getMaxEnchantability(int enchantmentLevel)
int getMinEnchantability(int enchantmentLevel)
java.lang.String getTranslatedName(int enchantmentLevel)
boolean isAllowedOnBooks()
boolean isCompatibleWith(IEnchantmentDefinition other)
boolean isCurse()
boolean isTreasureEnchantment()
IEnchantment makeEnchantment(int level)
int compare(IEnchantmentDefinition other)
java.lang.Object getInternal()