Package net.minecraft.enchantment
Class UnbreakingEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.UnbreakingEnchantment
- Mappings:
Namespace Name official cyf
intermediary net/minecraft/class_1885
named net/minecraft/enchantment/UnbreakingEnchantment
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.enchantment.Enchantment
Enchantment.Cost, Enchantment.Properties
-
Field Summary
Fields inherited from class net.minecraft.enchantment.Enchantment
translationKey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
shouldPreventDamage
(ItemStack item, int level, Random random) Methods inherited from class net.minecraft.enchantment.Enchantment
byRawId, canAccept, canCombine, constantCost, getAnvilCost, getApplicableItems, getAttackDamage, getEquipment, getMaxLevel, getMaxPower, getMinLevel, getMinPower, getName, getOrCreateTranslationKey, getProtectionAmount, getRegistryEntry, getTranslationKey, getWeight, isAcceptableItem, isAvailableForEnchantedBookOffer, isAvailableForRandomSelection, isCursed, isPrimaryItem, isTreasure, leveledCost, onTargetDamaged, onUserDamaged, properties, properties
-
Constructor Details
-
UnbreakingEnchantment
- 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
- 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
-