Class UnbreakingEnchantment

java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.UnbreakingEnchantment
All Implemented Interfaces:
ToggleableFeature

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

    • UnbreakingEnchantment

      protected UnbreakingEnchantment(Enchantment.Properties properties)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/enchantment/Enchantment;<init>(Lnet/minecraft/enchantment/Enchantment$Properties;)V
      intermediary <init> Lnet/minecraft/class_1887;<init>(Lnet/minecraft/class_1887$class_9427;)V
      official <init> Ldac;<init>(Ldac$b;)V
  • Method Details

    • shouldPreventDamage

      public static boolean shouldPreventDamage(ItemStack item, int level, Random random)
      Mappings:
      Namespace Name Mixin selector
      named shouldPreventDamage Lnet/minecraft/enchantment/UnbreakingEnchantment;shouldPreventDamage(Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/random/Random;)Z
      intermediary method_8176 Lnet/minecraft/class_1885;method_8176(Lnet/minecraft/class_1799;ILnet/minecraft/class_5819;)Z
      official a Ldab;a(Lcur;ILazh;)Z