Class UnbreakingEnchantment

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

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

    • UnbreakingEnchantment

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

    • shouldPreventDamage

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