public class MCEnchantmentDefinition
extends java.lang.Object
implements crafttweaker.api.enchantments.IEnchantmentDefinition
| Modifier and Type | Field and Description |
|---|---|
net.minecraft.enchantment.Enchantment |
enchantment |
| Constructor and Description |
|---|
MCEnchantmentDefinition(net.minecraft.enchantment.Enchantment enchantment) |
MCEnchantmentDefinition(int id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canApply(crafttweaker.api.item.IItemStack itemStack) |
boolean |
canApplyAtEnchantmentTable(crafttweaker.api.item.IItemStack itemStack) |
int |
compare(crafttweaker.api.enchantments.IEnchantmentDefinition other) |
boolean |
equals(java.lang.Object o) |
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) |
int |
hashCode() |
boolean |
isAllowedOnBooks() |
boolean |
isCompatibleWith(crafttweaker.api.enchantments.IEnchantmentDefinition other) |
boolean |
isCurse() |
boolean |
isTreasureEnchantment() |
crafttweaker.api.enchantments.IEnchantment |
makeEnchantment(int level) |
void |
setName(java.lang.String name) |
public MCEnchantmentDefinition(net.minecraft.enchantment.Enchantment enchantment)
public MCEnchantmentDefinition(int id)
public int getID()
getID in interface crafttweaker.api.enchantments.IEnchantmentDefinitionpublic java.lang.String getRegistryName()
getRegistryName in interface crafttweaker.api.enchantments.IEnchantmentDefinitionpublic java.lang.String getName()
getName in interface crafttweaker.api.enchantments.IEnchantmentDefinitionpublic void setName(java.lang.String name)
setName in interface crafttweaker.api.enchantments.IEnchantmentDefinitionpublic boolean canApply(crafttweaker.api.item.IItemStack itemStack)
canApply in interface crafttweaker.api.enchantments.IEnchantmentDefinitionpublic boolean canApplyAtEnchantmentTable(crafttweaker.api.item.IItemStack itemStack)
canApplyAtEnchantmentTable in interface crafttweaker.api.enchantments.IEnchantmentDefinitionpublic int getMaxLevel()
getMaxLevel in interface crafttweaker.api.enchantments.IEnchantmentDefinitionpublic int getMinLevel()
getMinLevel in interface crafttweaker.api.enchantments.IEnchantmentDefinitionpublic int getMaxEnchantability(int enchantmentLevel)
getMaxEnchantability in interface crafttweaker.api.enchantments.IEnchantmentDefinitionpublic int getMinEnchantability(int enchantmentLevel)
getMinEnchantability in interface crafttweaker.api.enchantments.IEnchantmentDefinitionpublic java.lang.String getTranslatedName(int enchantmentLevel)
getTranslatedName in interface crafttweaker.api.enchantments.IEnchantmentDefinitionpublic boolean isAllowedOnBooks()
isAllowedOnBooks in interface crafttweaker.api.enchantments.IEnchantmentDefinitionpublic boolean isCompatibleWith(crafttweaker.api.enchantments.IEnchantmentDefinition other)
isCompatibleWith in interface crafttweaker.api.enchantments.IEnchantmentDefinitionpublic boolean isCurse()
isCurse in interface crafttweaker.api.enchantments.IEnchantmentDefinitionpublic boolean isTreasureEnchantment()
isTreasureEnchantment in interface crafttweaker.api.enchantments.IEnchantmentDefinitionpublic crafttweaker.api.enchantments.IEnchantment makeEnchantment(int level)
makeEnchantment in interface crafttweaker.api.enchantments.IEnchantmentDefinitionpublic int compare(crafttweaker.api.enchantments.IEnchantmentDefinition other)
compare in interface crafttweaker.api.enchantments.IEnchantmentDefinitionpublic java.lang.Object getInternal()
getInternal in interface crafttweaker.api.enchantments.IEnchantmentDefinitionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object