Package net.minecraft.enchantment
Class UnbreakingEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.UnbreakingEnchantment
- All Implemented Interfaces:
ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/enchantment/UnbreakingEnchantmentintermediary net/minecraft/class_1885official dab
-
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
translationKeyFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
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, getRequiredFeatures, getTranslationKey, getWeight, isAcceptableItem, isAvailableForEnchantedBookOffer, isAvailableForRandomSelection, isCursed, isPrimaryItem, isTreasure, leveledCost, onAttack, onTargetDamaged, onUserDamaged, properties, properties, propertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Constructor Details
-
UnbreakingEnchantment
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/enchantment/Enchantment;<init>(Lnet/minecraft/enchantment/Enchantment$Properties;)Vintermediary <init>Lnet/minecraft/class_1887;<init>(Lnet/minecraft/class_1887$class_9427;)Vofficial <init>Ldac;<init>(Ldac$b;)V
-
-
Method Details
-
shouldPreventDamage
- Mappings:
Namespace Name Mixin selector named shouldPreventDamageLnet/minecraft/enchantment/UnbreakingEnchantment;shouldPreventDamage(Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/random/Random;)Zintermediary method_8176Lnet/minecraft/class_1885;method_8176(Lnet/minecraft/class_1799;ILnet/minecraft/class_5819;)Zofficial aLdab;a(Lcur;ILazh;)Z
-