Class ProtectionEnchantment

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

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

    • TYPES

      private static final String[] TYPES
      Mappings:
      Namespace Name Mixin selector
      official E Lacr;E:[Ljava/lang/String;
      intermediary field_171 Lnet/minecraft/class_78;field_171:[Ljava/lang/String;
      named TYPES Lnet/minecraft/enchantment/ProtectionEnchantment;TYPES:[Ljava/lang/String;
    • MINIMUM_ENCHANTABILITY

      private static final int[] MINIMUM_ENCHANTABILITY
      Mappings:
      Namespace Name Mixin selector
      official F Lacr;F:[I
      intermediary field_172 Lnet/minecraft/class_78;field_172:[I
      named MINIMUM_ENCHANTABILITY Lnet/minecraft/enchantment/ProtectionEnchantment;MINIMUM_ENCHANTABILITY:[I
    • field_173

      private static final int[] field_173
      Mappings:
      Namespace Name Mixin selector
      official G Lacr;G:[I
      intermediary field_173 Lnet/minecraft/class_78;field_173:[I
      named field_173 Lnet/minecraft/enchantment/ProtectionEnchantment;field_173:[I
    • MAXIMUM_ENCHANTABILITY

      private static final int[] MAXIMUM_ENCHANTABILITY
      Mappings:
      Namespace Name Mixin selector
      official H Lacr;H:[I
      intermediary field_174 Lnet/minecraft/class_78;field_174:[I
      named MAXIMUM_ENCHANTABILITY Lnet/minecraft/enchantment/ProtectionEnchantment;MAXIMUM_ENCHANTABILITY:[I
    • protectionTypeId

      public final int protectionTypeId
      Mappings:
      Namespace Name Mixin selector
      official a Lacr;a:I
      intermediary field_175 Lnet/minecraft/class_78;field_175:I
      named protectionTypeId Lnet/minecraft/enchantment/ProtectionEnchantment;protectionTypeId:I
  • Constructor Details

    • ProtectionEnchantment

      public ProtectionEnchantment​(int id, Identifier identifier, int enchantmentType, int protectionTypeId)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lacr;<init>(ILjy;II)V
      intermediary <init> Lnet/minecraft/class_78;<init>(ILnet/minecraft/class_1605;II)V
      named <init> Lnet/minecraft/enchantment/ProtectionEnchantment;<init>(ILnet/minecraft/util/Identifier;II)V
  • Method Details

    • getMinimumPower

      public int getMinimumPower​(int level)
      Overrides:
      getMinimumPower in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      official a Laci;a(I)I
      intermediary method_80 Lnet/minecraft/class_64;method_80(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 Laci;b(I)I
      intermediary method_87 Lnet/minecraft/class_64;method_87(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 Laci;b()I
      intermediary method_86 Lnet/minecraft/class_64;method_86()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 Laci;a(ILow;)I
      intermediary method_81 Lnet/minecraft/class_64;method_81(ILnet/minecraft/class_1733;)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 Laci;a()Ljava/lang/String;
      intermediary method_79 Lnet/minecraft/class_64;method_79()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 Laci;a(Laci;)Z
      intermediary method_83 Lnet/minecraft/class_64;method_83(Lnet/minecraft/class_64;)Z
      named differs Lnet/minecraft/enchantment/Enchantment;differs(Lnet/minecraft/enchantment/Enchantment;)Z
    • method_125

      public static int method_125​(Entity entity, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lacr;a(Lpk;I)I
      intermediary method_125 Lnet/minecraft/class_78;method_125(Lnet/minecraft/class_1745;I)I
      named method_125 Lnet/minecraft/enchantment/ProtectionEnchantment;method_125(Lnet/minecraft/entity/Entity;I)I
    • method_124

      public static double method_124​(Entity entity, double double2)
      Mappings:
      Namespace Name Mixin selector
      official a Lacr;a(Lpk;D)D
      intermediary method_124 Lnet/minecraft/class_78;method_124(Lnet/minecraft/class_1745;D)D
      named method_124 Lnet/minecraft/enchantment/ProtectionEnchantment;method_124(Lnet/minecraft/entity/Entity;D)D