Package net.minecraft.enchantment
Class UnbreakingEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.UnbreakingEnchantment
- Mappings:
Namespace Name official ckcintermediary net/minecraft/class_1885named net/minecraft/enchantment/UnbreakingEnchantment
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.enchantment.Enchantment
Enchantment.Rarity -
Field Summary
Fields inherited from class net.minecraft.enchantment.Enchantment
target, translationKey -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnbreakingEnchantment(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) -
Method Summary
Modifier and TypeMethodDescriptionintintgetMaxPower(int level) intgetMinPower(int level) booleanisAcceptableItem(ItemStack stack) static booleanshouldPreventDamage(ItemStack item, int level, Random random) Methods inherited from class net.minecraft.enchantment.Enchantment
byRawId, canAccept, canCombine, getAttackDamage, getEquipment, getMinLevel, getName, getOrCreateTranslationKey, getProtectionAmount, getRarity, getTranslationKey, isAvailableForEnchantedBookOffer, isAvailableForRandomSelection, isCursed, isTreasure, onTargetDamaged, onUserDamaged
-
Constructor Details
-
UnbreakingEnchantment
- Mappings:
Namespace Name Mixin selector official <init>Lckc;<init>(Lcke$a;[Lbfm;)Vintermediary <init>Lnet/minecraft/class_1885;<init>(Lnet/minecraft/class_1887$class_1888;[Lnet/minecraft/class_1304;)Vnamed <init>Lnet/minecraft/enchantment/UnbreakingEnchantment;<init>(Lnet/minecraft/enchantment/Enchantment$Rarity;[Lnet/minecraft/entity/EquipmentSlot;)V
-
-
Method Details
-
getMinPower
public int getMinPower(int level) - Overrides:
getMinPowerin classEnchantment- Mappings:
Namespace Name Mixin selector official aLcke;a(I)Iintermediary method_8182Lnet/minecraft/class_1887;method_8182(I)Inamed getMinPowerLnet/minecraft/enchantment/Enchantment;getMinPower(I)I
-
getMaxPower
public int getMaxPower(int level) - Overrides:
getMaxPowerin classEnchantment- Mappings:
Namespace Name Mixin selector official bLcke;b(I)Iintermediary method_20742Lnet/minecraft/class_1887;method_20742(I)Inamed getMaxPowerLnet/minecraft/enchantment/Enchantment;getMaxPower(I)I
-
getMaxLevel
public int getMaxLevel()- Overrides:
getMaxLevelin classEnchantment- Mappings:
Namespace Name Mixin selector official aLcke;a()Iintermediary method_8183Lnet/minecraft/class_1887;method_8183()Inamed getMaxLevelLnet/minecraft/enchantment/Enchantment;getMaxLevel()I
-
isAcceptableItem
- Overrides:
isAcceptableItemin classEnchantment- Mappings:
Namespace Name Mixin selector official aLcke;a(Lcfx;)Zintermediary method_8192Lnet/minecraft/class_1887;method_8192(Lnet/minecraft/class_1799;)Znamed isAcceptableItemLnet/minecraft/enchantment/Enchantment;isAcceptableItem(Lnet/minecraft/item/ItemStack;)Z
-
shouldPreventDamage
- Mappings:
Namespace Name Mixin selector official aLckc;a(Lcfx;ILapf;)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
-