Class ProtectionEnchantment

java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.ProtectionEnchantment

public class ProtectionEnchantment extends Enchantment
Mappings:
Namespace Name
official alw
intermediary net/minecraft/class_1140
named net/minecraft/enchantment/ProtectionEnchantment
  • Field Details

    • protectionType

      public final ProtectionEnchantment.ProtectionType protectionType
      Mappings:
      Namespace Name Mixin selector
      official a Lalw;a:Lalw$a;
      intermediary field_12423 Lnet/minecraft/class_1140;field_12423:Lnet/minecraft/class_1140$class_2707;
      named protectionType Lnet/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> Lalw;<init>(Lalk$a;Lalw$a;[Lvl;)V
      intermediary <init> Lnet/minecraft/class_1140;<init>(Lnet/minecraft/class_1127$class_2703;Lnet/minecraft/class_1140$class_2707;[Lnet/minecraft/class_2968;)V
      named <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:
      getMinimumPower in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      official a Lalk;a(I)I
      intermediary method_3508 Lnet/minecraft/class_1127;method_3508(I)I
      named getMinimumPower Lnet/minecraft/enchantment/Enchantment;getMinimumPower(I)I
    • getMaximumPower

      public int getMaximumPower(int level)
      Overrides:
      getMaximumPower in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      official b Lalk;b(I)I
      intermediary method_3513 Lnet/minecraft/class_1127;method_3513(I)I
      named getMaximumPower Lnet/minecraft/enchantment/Enchantment;getMaximumPower(I)I
    • getMaximumLevel

      public int getMaximumLevel()
      Overrides:
      getMaximumLevel in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      official b Lalk;b()I
      intermediary method_3512 Lnet/minecraft/class_1127;method_3512()I
      named getMaximumLevel Lnet/minecraft/enchantment/Enchantment;getMaximumLevel()I
    • getProtectionAmount

      public int getProtectionAmount(int level, DamageSource source)
      Overrides:
      getProtectionAmount in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      official a Lalk;a(ILur;)I
      intermediary method_3509 Lnet/minecraft/class_1127;method_3509(ILnet/minecraft/class_856;)I
      named getProtectionAmount Lnet/minecraft/enchantment/Enchantment;getProtectionAmount(ILnet/minecraft/entity/damage/DamageSource;)I
    • getTranslationKey

      public String getTranslationKey()
      Overrides:
      getTranslationKey in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      official a Lalk;a()Ljava/lang/String;
      intermediary method_3507 Lnet/minecraft/class_1127;method_3507()Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/enchantment/Enchantment;getTranslationKey()Ljava/lang/String;
    • differs

      public boolean differs(Enchantment other)
      Overrides:
      differs in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      official a Lalk;a(Lalk;)Z
      intermediary method_3511 Lnet/minecraft/class_1127;method_3511(Lnet/minecraft/class_1127;)Z
      named differs Lnet/minecraft/enchantment/Enchantment;differs(Lnet/minecraft/enchantment/Enchantment;)Z
    • method_11466

      public static int method_11466(LivingEntity livingEntity, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lalw;a(Lvp;I)I
      intermediary method_11466 Lnet/minecraft/class_1140;method_11466(Lnet/minecraft/class_1699;I)I
      named method_11466 Lnet/minecraft/enchantment/ProtectionEnchantment;method_11466(Lnet/minecraft/entity/LivingEntity;I)I
    • method_11465

      public static double method_11465(LivingEntity livingEntity, double double2)
      Mappings:
      Namespace Name Mixin selector
      official a Lalw;a(Lvp;D)D
      intermediary method_11465 Lnet/minecraft/class_1140;method_11465(Lnet/minecraft/class_1699;D)D
      named method_11465 Lnet/minecraft/enchantment/ProtectionEnchantment;method_11465(Lnet/minecraft/entity/LivingEntity;D)D