Class ProtectionEnchantment

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

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

    • TYPES

      private static final String[] TYPES
      Mappings:
      Namespace Name Mixin selector
      official E Lapu;E:[Ljava/lang/String;
      intermediary field_4498 Lnet/minecraft/class_1140;field_4498:[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 Lapu;F:[I
      intermediary field_4499 Lnet/minecraft/class_1140;field_4499:[I
      named MINIMUM_ENCHANTABILITY Lnet/minecraft/enchantment/ProtectionEnchantment;MINIMUM_ENCHANTABILITY:[I
    • field_4500

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

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

      public final int protectionTypeId
      Mappings:
      Namespace Name Mixin selector
      official a Lapu;a:I
      intermediary field_4502 Lnet/minecraft/class_1140;field_4502: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> Lapu;<init>(ILoa;II)V
      intermediary <init> Lnet/minecraft/class_1140;<init>(ILnet/minecraft/class_1653;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 Lapf;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 Lapf;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 Lapf;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 Lapf;a(ILwh;)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 Lapf;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 Lapf;a(Lapf;)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_4659

      public static int method_4659(Entity entity, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lapu;a(Lwv;I)I
      intermediary method_4659 Lnet/minecraft/class_1140;method_4659(Lnet/minecraft/class_864;I)I
      named method_4659 Lnet/minecraft/enchantment/ProtectionEnchantment;method_4659(Lnet/minecraft/entity/Entity;I)I
    • method_4658

      public static double method_4658(Entity entity, double double2)
      Mappings:
      Namespace Name Mixin selector
      official a Lapu;a(Lwv;D)D
      intermediary method_4658 Lnet/minecraft/class_1140;method_4658(Lnet/minecraft/class_864;D)D
      named method_4658 Lnet/minecraft/enchantment/ProtectionEnchantment;method_4658(Lnet/minecraft/entity/Entity;D)D