Package net.minecraft.enchantment
Class ProtectionEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.ProtectionEnchantment
- Mappings:
Namespace Name official awqintermediary net/minecraft/class_1140named net/minecraft/enchantment/ProtectionEnchantment
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.enchantment.Enchantment
Enchantment.Rarity -
Field Summary
FieldsFields inherited from class net.minecraft.enchantment.Enchantment
target, translationKey -
Constructor Summary
ConstructorsConstructorDescriptionProtectionEnchantment(Enchantment.Rarity rarity, ProtectionEnchantment.ProtectionType protectionType, EquipmentSlot[] damageType) -
Method Summary
Modifier and TypeMethodDescriptionbooleandiffers(Enchantment other) intintgetMaximumPower(int level) intgetMinimumPower(int level) intgetProtectionAmount(int level, DamageSource source) static doublemethod_11465(LivingEntity livingEntity, double double2) static intmethod_11466(LivingEntity livingEntity, int int2) Methods inherited from class net.minecraft.enchantment.Enchantment
byIndex, getMinimumLevel, getRarity, getTranslationKey, isAcceptableItem, isCursed, isDifferent, isTreasure, method_13673, method_16257, method_16258, method_5489, onDamage, onDamaged, register
-
Field Details
-
protectionType
- Mappings:
Namespace Name Mixin selector official aLawq;a:Lawq$a;intermediary field_12423Lnet/minecraft/class_1140;field_12423:Lnet/minecraft/class_1140$class_2707;named protectionTypeLnet/minecraft/enchantment/ProtectionEnchantment;protectionType:Lnet/minecraft/enchantment/ProtectionEnchantment$ProtectionType;
-
-
Constructor Details
-
ProtectionEnchantment
public ProtectionEnchantment(Enchantment.Rarity rarity, ProtectionEnchantment.ProtectionType protectionType, EquipmentSlot[] damageType) - Mappings:
Namespace Name Mixin selector official <init>Lawq;<init>(Lawe$a;Lawq$a;[Laew;)Vintermediary <init>Lnet/minecraft/class_1140;<init>(Lnet/minecraft/class_1127$class_2703;Lnet/minecraft/class_1140$class_2707;[Lnet/minecraft/class_2968;)Vnamed <init>Lnet/minecraft/enchantment/ProtectionEnchantment;<init>(Lnet/minecraft/enchantment/Enchantment$Rarity;Lnet/minecraft/enchantment/ProtectionEnchantment$ProtectionType;[Lnet/minecraft/entity/EquipmentSlot;)V
-
-
Method Details
-
getMinimumPower
public int getMinimumPower(int level) - Overrides:
getMinimumPowerin classEnchantment- Mappings:
Namespace Name Mixin selector official aLawe;a(I)Iintermediary method_3508Lnet/minecraft/class_1127;method_3508(I)Inamed getMinimumPowerLnet/minecraft/enchantment/Enchantment;getMinimumPower(I)I
-
getMaximumPower
public int getMaximumPower(int level) - Overrides:
getMaximumPowerin classEnchantment- Mappings:
Namespace Name Mixin selector official bLawe;b(I)Iintermediary method_3513Lnet/minecraft/class_1127;method_3513(I)Inamed getMaximumPowerLnet/minecraft/enchantment/Enchantment;getMaximumPower(I)I
-
getMaximumLevel
public int getMaximumLevel()- Overrides:
getMaximumLevelin classEnchantment- Mappings:
Namespace Name Mixin selector official aLawe;a()Iintermediary method_3512Lnet/minecraft/class_1127;method_3512()Inamed getMaximumLevelLnet/minecraft/enchantment/Enchantment;getMaximumLevel()I
-
getProtectionAmount
- Overrides:
getProtectionAmountin classEnchantment- Mappings:
Namespace Name Mixin selector official aLawe;a(ILaea;)Iintermediary method_3509Lnet/minecraft/class_1127;method_3509(ILnet/minecraft/class_856;)Inamed getProtectionAmountLnet/minecraft/enchantment/Enchantment;getProtectionAmount(ILnet/minecraft/entity/damage/DamageSource;)I
-
differs
- Overrides:
differsin classEnchantment- Mappings:
Namespace Name Mixin selector official aLawe;a(Lawe;)Zintermediary method_3511Lnet/minecraft/class_1127;method_3511(Lnet/minecraft/class_1127;)Znamed differsLnet/minecraft/enchantment/Enchantment;differs(Lnet/minecraft/enchantment/Enchantment;)Z
-
method_11466
- Mappings:
Namespace Name Mixin selector official aLawq;a(Lafa;I)Iintermediary method_11466Lnet/minecraft/class_1140;method_11466(Lnet/minecraft/class_1699;I)Inamed method_11466Lnet/minecraft/enchantment/ProtectionEnchantment;method_11466(Lnet/minecraft/entity/LivingEntity;I)I
-
method_11465
- Mappings:
Namespace Name Mixin selector official aLawq;a(Lafa;D)Dintermediary method_11465Lnet/minecraft/class_1140;method_11465(Lnet/minecraft/class_1699;D)Dnamed method_11465Lnet/minecraft/enchantment/ProtectionEnchantment;method_11465(Lnet/minecraft/entity/LivingEntity;D)D
-