Package net.minecraft.enchantment
Class UnbreakingEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.UnbreakingEnchantment
- Mappings:
Namespace Name official cyfintermediary net/minecraft/class_1885named 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 booleanshouldPreventDamage(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;)Vintermediary <init>Lnet/minecraft/class_1887;<init>(Lnet/minecraft/class_1887$class_9427;)Vnamed <init>Lnet/minecraft/enchantment/Enchantment;<init>(Lnet/minecraft/enchantment/Enchantment$Properties;)V
-
-
Method Details
-
shouldPreventDamage
- Mappings:
Namespace Name Mixin selector official aLcyf;a(Lcsz;ILayg;)Zintermediary method_8176Lnet/minecraft/class_1885;method_8176(Lnet/minecraft/class_1799;ILnet/minecraft/class_5819;)Znamed shouldPreventDamageLnet/minecraft/enchantment/UnbreakingEnchantment;shouldPreventDamage(Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/random/Random;)Z
-