Class UnbreakingEnchantment

java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.UnbreakingEnchantment

public class UnbreakingEnchantment extends Enchantment
Mappings:
Namespace Name
official apd
intermediary net/minecraft/class_1125
named net/minecraft/enchantment/UnbreakingEnchantment
  • Constructor Details

    • UnbreakingEnchantment

      protected UnbreakingEnchantment(int id, Identifier identifier, int enchantmentType)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lapd;<init>(ILoa;I)V
      intermediary <init> Lnet/minecraft/class_1125;<init>(ILnet/minecraft/class_1653;I)V
      named <init> Lnet/minecraft/enchantment/UnbreakingEnchantment;<init>(ILnet/minecraft/util/Identifier;I)V
  • Method Details

    • getMinimumPower

      public int getMinimumPower(int level)
      Overrides:
      getMinimumPower in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      official a Lapf;a(I)I
      intermediary method_3508 Lnet/minecraft/class_1127;method_3508(I)I
      named getMinimumPower Lnet/minecraft/enchantment/Enchantment;getMinimumPower(I)I
    • getMaximumPower

      public int getMaximumPower(int level)
      Overrides:
      getMaximumPower in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      official b Lapf;b(I)I
      intermediary method_3513 Lnet/minecraft/class_1127;method_3513(I)I
      named getMaximumPower Lnet/minecraft/enchantment/Enchantment;getMaximumPower(I)I
    • getMaximumLevel

      public int getMaximumLevel()
      Overrides:
      getMaximumLevel in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      official b Lapf;b()I
      intermediary method_3512 Lnet/minecraft/class_1127;method_3512()I
      named getMaximumLevel Lnet/minecraft/enchantment/Enchantment;getMaximumLevel()I
    • isAcceptableItem

      public boolean isAcceptableItem(ItemStack stack)
      Overrides:
      isAcceptableItem in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      official a Lapf;a(Lamj;)Z
      intermediary method_4644 Lnet/minecraft/class_1127;method_4644(Lnet/minecraft/class_1071;)Z
      named isAcceptableItem Lnet/minecraft/enchantment/Enchantment;isAcceptableItem(Lnet/minecraft/item/ItemStack;)Z
    • shouldPreventDamage

      public static boolean shouldPreventDamage(ItemStack item, int level, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lapd;a(Lamj;ILjava/util/Random;)Z
      intermediary method_4643 Lnet/minecraft/class_1125;method_4643(Lnet/minecraft/class_1071;ILjava/util/Random;)Z
      named shouldPreventDamage Lnet/minecraft/enchantment/UnbreakingEnchantment;shouldPreventDamage(Lnet/minecraft/item/ItemStack;ILjava/util/Random;)Z