Class EnchantmentHelper

java.lang.Object
net.minecraft.enchantment.EnchantmentHelper

public class EnchantmentHelper
extends Object
Mappings:
Namespace Name
official ack
intermediary net/minecraft/class_66
named net/minecraft/enchantment/EnchantmentHelper
  • Field Details

    • RANDOM

      private static final Random RANDOM
      Mappings:
      Namespace Name Mixin selector
      official a Lack;a:Ljava/util/Random;
      intermediary field_156 Lnet/minecraft/class_66;field_156:Ljava/util/Random;
      named RANDOM Lnet/minecraft/enchantment/EnchantmentHelper;RANDOM:Ljava/util/Random;
    • PROTECTION_LISTENER

      private static final EnchantmentHelper.ProtectionModifier PROTECTION_LISTENER
      Mappings:
      Namespace Name Mixin selector
      official b Lack;b:Lack$e;
      intermediary field_157 Lnet/minecraft/class_66;field_157:Lnet/minecraft/class_66$class_71;
      named PROTECTION_LISTENER Lnet/minecraft/enchantment/EnchantmentHelper;PROTECTION_LISTENER:Lnet/minecraft/enchantment/EnchantmentHelper$ProtectionModifier;
    • ENTITY_DAMAGE_LISTENER

      private static final EnchantmentHelper.DamageModifier ENTITY_DAMAGE_LISTENER
      Mappings:
      Namespace Name Mixin selector
      official c Lack;c:Lack$d;
      intermediary field_158 Lnet/minecraft/class_66;field_158:Lnet/minecraft/class_66$class_70;
      named ENTITY_DAMAGE_LISTENER Lnet/minecraft/enchantment/EnchantmentHelper;ENTITY_DAMAGE_LISTENER:Lnet/minecraft/enchantment/EnchantmentHelper$DamageModifier;
    • ON_DAMAGE_LISTENER

      private static final EnchantmentHelper.OnDamagedWith ON_DAMAGE_LISTENER
      Mappings:
      Namespace Name Mixin selector
      official d Lack;d:Lack$b;
      intermediary field_159 Lnet/minecraft/class_66;field_159:Lnet/minecraft/class_66$class_68;
      named ON_DAMAGE_LISTENER Lnet/minecraft/enchantment/EnchantmentHelper;ON_DAMAGE_LISTENER:Lnet/minecraft/enchantment/EnchantmentHelper$OnDamagedWith;
    • ON_ATTACK_LISTENER

      private static final EnchantmentHelper.OnAttackedWith ON_ATTACK_LISTENER
      Mappings:
      Namespace Name Mixin selector
      official e Lack;e:Lack$a;
      intermediary field_160 Lnet/minecraft/class_66;field_160:Lnet/minecraft/class_66$class_67;
      named ON_ATTACK_LISTENER Lnet/minecraft/enchantment/EnchantmentHelper;ON_ATTACK_LISTENER:Lnet/minecraft/enchantment/EnchantmentHelper$OnAttackedWith;
  • Constructor Details

    • EnchantmentHelper

      public EnchantmentHelper()
  • Method Details

    • method_97

      public static int method_97​(int id, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lack;a(ILzx;)I
      intermediary method_97 Lnet/minecraft/class_66;method_97(ILnet/minecraft/class_2056;)I
      named method_97 Lnet/minecraft/enchantment/EnchantmentHelper;method_97(ILnet/minecraft/item/ItemStack;)I
    • getEnchantments

      public static Map<Integer,​Integer> getEnchantments​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lack;a(Lzx;)Ljava/util/Map;
      intermediary method_108 Lnet/minecraft/class_66;method_108(Lnet/minecraft/class_2056;)Ljava/util/Map;
      named getEnchantments Lnet/minecraft/enchantment/EnchantmentHelper;getEnchantments(Lnet/minecraft/item/ItemStack;)Ljava/util/Map;
    • setEnchantments

      public static void setEnchantments​(Map<Integer,​Integer> enchantments, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lack;a(Ljava/util/Map;Lzx;)V
      intermediary method_102 Lnet/minecraft/class_66;method_102(Ljava/util/Map;Lnet/minecraft/class_2056;)V
      named setEnchantments Lnet/minecraft/enchantment/EnchantmentHelper;setEnchantments(Ljava/util/Map;Lnet/minecraft/item/ItemStack;)V
    • method_98

      public static int method_98​(int int2, ItemStack[] itemStack)
      Mappings:
      Namespace Name Mixin selector
      official a Lack;a(I[Lzx;)I
      intermediary method_98 Lnet/minecraft/class_66;method_98(I[Lnet/minecraft/class_2056;)I
      named method_98 Lnet/minecraft/enchantment/EnchantmentHelper;method_98(I[Lnet/minecraft/item/ItemStack;)I
    • method_100

      private static void method_100​(EnchantmentHelper.Listener listener, ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official a Lack;a(Lack$c;Lzx;)V
      intermediary method_100 Lnet/minecraft/class_66;method_100(Lnet/minecraft/class_66$class_69;Lnet/minecraft/class_2056;)V
      named method_100 Lnet/minecraft/enchantment/EnchantmentHelper;method_100(Lnet/minecraft/enchantment/EnchantmentHelper$Listener;Lnet/minecraft/item/ItemStack;)V
    • method_101

      private static void method_101​(EnchantmentHelper.Listener listener, ItemStack[] stacks)
      Mappings:
      Namespace Name Mixin selector
      official a Lack;a(Lack$c;[Lzx;)V
      intermediary method_101 Lnet/minecraft/class_66;method_101(Lnet/minecraft/class_66$class_69;[Lnet/minecraft/class_2056;)V
      named method_101 Lnet/minecraft/enchantment/EnchantmentHelper;method_101(Lnet/minecraft/enchantment/EnchantmentHelper$Listener;[Lnet/minecraft/item/ItemStack;)V
    • method_110

      public static int method_110​(ItemStack[] itemStack, DamageSource damageSource)
      Mappings:
      Namespace Name Mixin selector
      official a Lack;a([Lzx;Low;)I
      intermediary method_110 Lnet/minecraft/class_66;method_110([Lnet/minecraft/class_2056;Lnet/minecraft/class_1733;)I
      named method_110 Lnet/minecraft/enchantment/EnchantmentHelper;method_110([Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/damage/DamageSource;)I
    • method_109

      public static float method_109​(ItemStack itemStack, DamageEnchantmentTarget damageEnchantmentTarget)
      Mappings:
      Namespace Name Mixin selector
      official a Lack;a(Lzx;Lpw;)F
      intermediary method_109 Lnet/minecraft/class_66;method_109(Lnet/minecraft/class_2056;Lnet/minecraft/class_1758;)F
      named method_109 Lnet/minecraft/enchantment/EnchantmentHelper;method_109(Lnet/minecraft/item/ItemStack;Lnet/minecraft/enchantment/DamageEnchantmentTarget;)F
    • method_107

      public static void method_107​(LivingEntity livingEntity, Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lack;a(Lpr;Lpk;)V
      intermediary method_107 Lnet/minecraft/class_66;method_107(Lnet/minecraft/class_1752;Lnet/minecraft/class_1745;)V
      named method_107 Lnet/minecraft/enchantment/EnchantmentHelper;method_107(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/Entity;)V
    • method_115

      public static void method_115​(LivingEntity livingEntity, Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official b Lack;b(Lpr;Lpk;)V
      intermediary method_115 Lnet/minecraft/class_66;method_115(Lnet/minecraft/class_1752;Lnet/minecraft/class_1745;)V
      named method_115 Lnet/minecraft/enchantment/EnchantmentHelper;method_115(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/Entity;)V
    • method_106

      public static int method_106​(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lack;a(Lpr;)I
      intermediary method_106 Lnet/minecraft/class_66;method_106(Lnet/minecraft/class_1752;)I
      named method_106 Lnet/minecraft/enchantment/EnchantmentHelper;method_106(Lnet/minecraft/entity/LivingEntity;)I
    • method_114

      public static int method_114​(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official b Lack;b(Lpr;)I
      intermediary method_114 Lnet/minecraft/class_66;method_114(Lnet/minecraft/class_1752;)I
      named method_114 Lnet/minecraft/enchantment/EnchantmentHelper;method_114(Lnet/minecraft/entity/LivingEntity;)I
    • method_105

      public static int method_105​(Entity rntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lack;a(Lpk;)I
      intermediary method_105 Lnet/minecraft/class_66;method_105(Lnet/minecraft/class_1745;)I
      named method_105 Lnet/minecraft/enchantment/EnchantmentHelper;method_105(Lnet/minecraft/entity/Entity;)I
    • method_113

      public static int method_113​(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official b Lack;b(Lpk;)I
      intermediary method_113 Lnet/minecraft/class_66;method_113(Lnet/minecraft/class_1745;)I
      named method_113 Lnet/minecraft/enchantment/EnchantmentHelper;method_113(Lnet/minecraft/entity/Entity;)I
    • method_116

      public static int method_116​(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official c Lack;c(Lpr;)I
      intermediary method_116 Lnet/minecraft/class_66;method_116(Lnet/minecraft/class_1752;)I
      named method_116 Lnet/minecraft/enchantment/EnchantmentHelper;method_116(Lnet/minecraft/entity/LivingEntity;)I
    • method_117

      public static boolean method_117​(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official e Lack;e(Lpr;)Z
      intermediary method_117 Lnet/minecraft/class_66;method_117(Lnet/minecraft/class_1752;)Z
      named method_117 Lnet/minecraft/enchantment/EnchantmentHelper;method_117(Lnet/minecraft/entity/LivingEntity;)Z
    • method_118

      public static int method_118​(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official f Lack;f(Lpr;)I
      intermediary method_118 Lnet/minecraft/class_66;method_118(Lnet/minecraft/class_1752;)I
      named method_118 Lnet/minecraft/enchantment/EnchantmentHelper;method_118(Lnet/minecraft/entity/LivingEntity;)I
    • method_119

      public static int method_119​(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official g Lack;g(Lpr;)I
      intermediary method_119 Lnet/minecraft/class_66;method_119(Lnet/minecraft/class_1752;)I
      named method_119 Lnet/minecraft/enchantment/EnchantmentHelper;method_119(Lnet/minecraft/entity/LivingEntity;)I
    • method_120

      public static int method_120​(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official h Lack;h(Lpr;)I
      intermediary method_120 Lnet/minecraft/class_66;method_120(Lnet/minecraft/class_1752;)I
      named method_120 Lnet/minecraft/enchantment/EnchantmentHelper;method_120(Lnet/minecraft/entity/LivingEntity;)I
    • method_121

      public static int method_121​(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official i Lack;i(Lpr;)I
      intermediary method_121 Lnet/minecraft/class_66;method_121(Lnet/minecraft/class_1752;)I
      named method_121 Lnet/minecraft/enchantment/EnchantmentHelper;method_121(Lnet/minecraft/entity/LivingEntity;)I
    • method_122

      public static boolean method_122​(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official j Lack;j(Lpr;)Z
      intermediary method_122 Lnet/minecraft/class_66;method_122(Lnet/minecraft/class_1752;)Z
      named method_122 Lnet/minecraft/enchantment/EnchantmentHelper;method_122(Lnet/minecraft/entity/LivingEntity;)Z
    • method_99

      public static ItemStack method_99​(Enchantment enchantment, LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lack;a(Laci;Lpr;)Lzx;
      intermediary method_99 Lnet/minecraft/class_66;method_99(Lnet/minecraft/class_64;Lnet/minecraft/class_1752;)Lnet/minecraft/class_2056;
      named method_99 Lnet/minecraft/enchantment/EnchantmentHelper;method_99(Lnet/minecraft/enchantment/Enchantment;Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/item/ItemStack;
    • calculateEnchantmentPower

      public static int calculateEnchantmentPower​(Random random, int int2, int int3, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lack;a(Ljava/util/Random;IILzx;)I
      intermediary method_103 Lnet/minecraft/class_66;method_103(Ljava/util/Random;IILnet/minecraft/class_2056;)I
      named calculateEnchantmentPower Lnet/minecraft/enchantment/EnchantmentHelper;calculateEnchantmentPower(Ljava/util/Random;IILnet/minecraft/item/ItemStack;)I
    • addRandomEnchantment

      public static ItemStack addRandomEnchantment​(Random random, ItemStack stack, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lack;a(Ljava/util/Random;Lzx;I)Lzx;
      intermediary method_104 Lnet/minecraft/class_66;method_104(Ljava/util/Random;Lnet/minecraft/class_2056;I)Lnet/minecraft/class_2056;
      named addRandomEnchantment Lnet/minecraft/enchantment/EnchantmentHelper;addRandomEnchantment(Ljava/util/Random;Lnet/minecraft/item/ItemStack;I)Lnet/minecraft/item/ItemStack;
    • getEnchantmentInfoEntries

      public static List<EnchantmentInfoEntry> getEnchantmentInfoEntries​(Random random, ItemStack stack, int int2)
      Mappings:
      Namespace Name Mixin selector
      official b Lack;b(Ljava/util/Random;Lzx;I)Ljava/util/List;
      intermediary method_112 Lnet/minecraft/class_66;method_112(Ljava/util/Random;Lnet/minecraft/class_2056;I)Ljava/util/List;
      named getEnchantmentInfoEntries Lnet/minecraft/enchantment/EnchantmentHelper;getEnchantmentInfoEntries(Ljava/util/Random;Lnet/minecraft/item/ItemStack;I)Ljava/util/List;
    • method_111

      public static Map<Integer,​EnchantmentInfoEntry> method_111​(int int2, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official b Lack;b(ILzx;)Ljava/util/Map;
      intermediary method_111 Lnet/minecraft/class_66;method_111(ILnet/minecraft/class_2056;)Ljava/util/Map;
      named method_111 Lnet/minecraft/enchantment/EnchantmentHelper;method_111(ILnet/minecraft/item/ItemStack;)Ljava/util/Map;