public abstract class MixinEnchantment extends Object implements org.spongepowered.api.item.Enchantment
Constructor and Description |
---|
MixinEnchantment() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canApplyTogether(net.minecraft.enchantment.Enchantment ench) |
boolean |
canBeAppliedByTable(org.spongepowered.api.item.inventory.ItemStack stack) |
String |
getId() |
abstract int |
getMaxEnchantability(int level) |
int |
getMaximumEnchantabilityForLevel(int level) |
int |
getMaximumLevel() |
abstract int |
getMaxLevel() |
abstract int |
getMinEnchantability(int level) |
int |
getMinimumEnchantabilityForLevel(int level) |
int |
getMinimumLevel() |
abstract int |
getMinLevel() |
int |
getWeight() |
boolean |
isCompatibleWith(org.spongepowered.api.item.Enchantment ench) |
void |
onConstructed(int id,
net.minecraft.util.ResourceLocation resLoc,
int weight,
net.minecraft.enchantment.EnumEnchantmentType type,
org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public abstract int getMinLevel()
public abstract int getMaxLevel()
public abstract int getMinEnchantability(int level)
public abstract int getMaxEnchantability(int level)
public abstract boolean canApplyTogether(net.minecraft.enchantment.Enchantment ench)
public void onConstructed(int id, net.minecraft.util.ResourceLocation resLoc, int weight, net.minecraft.enchantment.EnumEnchantmentType type, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
public String getId()
getId
in interface org.spongepowered.api.CatalogType
public int getWeight()
getWeight
in interface org.spongepowered.api.item.Enchantment
public int getMinimumLevel()
getMinimumLevel
in interface org.spongepowered.api.item.Enchantment
public int getMaximumLevel()
getMaximumLevel
in interface org.spongepowered.api.item.Enchantment
public int getMinimumEnchantabilityForLevel(int level)
getMinimumEnchantabilityForLevel
in interface org.spongepowered.api.item.Enchantment
public int getMaximumEnchantabilityForLevel(int level)
getMaximumEnchantabilityForLevel
in interface org.spongepowered.api.item.Enchantment
public boolean canBeAppliedByTable(org.spongepowered.api.item.inventory.ItemStack stack)
canBeAppliedByTable
in interface org.spongepowered.api.item.Enchantment
public boolean isCompatibleWith(org.spongepowered.api.item.Enchantment ench)
isCompatibleWith
in interface org.spongepowered.api.item.Enchantment