Class EnchantmentLootBonus

java.lang.Object
net.minecraft.src.Enchantment
net.minecraft.src.EnchantmentLootBonus

public class EnchantmentLootBonus extends Enchantment
  • Constructor Details

    • EnchantmentLootBonus

      protected EnchantmentLootBonus(int par1, int par2, EnumEnchantmentType par3EnumEnchantmentType)
  • Method Details

    • getMinEnchantability

      public int getMinEnchantability(int par1)
      Returns the minimal value of enchantability needed on the enchantment level passed.
      Overrides:
      getMinEnchantability in class Enchantment
    • getMaxEnchantability

      public int getMaxEnchantability(int par1)
      Returns the maximum value of enchantability nedded on the enchantment level passed.
      Overrides:
      getMaxEnchantability in class Enchantment
    • getMaxLevel

      public int getMaxLevel()
      Returns the maximum level that the enchantment can have.
      Overrides:
      getMaxLevel in class Enchantment
    • canApplyTogether

      public boolean canApplyTogether(Enchantment par1Enchantment)
      Determines if the enchantment passed can be applyied together with this enchantment.
      Overrides:
      canApplyTogether in class Enchantment