Class UnbreakingEnchantment

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

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

    • UnbreakingEnchantment

      protected UnbreakingEnchantment​(int id, Identifier identifier, int enchantmentType)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lacg;<init>(ILjy;I)V
      intermediary <init> Lnet/minecraft/class_62;<init>(ILnet/minecraft/class_1605;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 Laci;a(I)I
      intermediary method_80 Lnet/minecraft/class_64;method_80(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 Laci;b(I)I
      intermediary method_87 Lnet/minecraft/class_64;method_87(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 Laci;b()I
      intermediary method_86 Lnet/minecraft/class_64;method_86()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 Laci;a(Lzx;)Z
      intermediary method_85 Lnet/minecraft/class_64;method_85(Lnet/minecraft/class_2056;)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 Lacg;a(Lzx;ILjava/util/Random;)Z
      intermediary method_78 Lnet/minecraft/class_62;method_78(Lnet/minecraft/class_2056;ILjava/util/Random;)Z
      named shouldPreventDamage Lnet/minecraft/enchantment/UnbreakingEnchantment;shouldPreventDamage(Lnet/minecraft/item/ItemStack;ILjava/util/Random;)Z