Class EnchantmentHelper.OnAttackedWith

java.lang.Object
net.minecraft.enchantment.EnchantmentHelper.OnAttackedWith
All Implemented Interfaces:
EnchantmentHelper.Listener
Enclosing class:
EnchantmentHelper

static final class EnchantmentHelper.OnAttackedWith
extends Object
implements EnchantmentHelper.Listener
Mappings:
Namespace Name
official ack$a
intermediary net/minecraft/class_66$class_67
named net/minecraft/enchantment/EnchantmentHelper$OnAttackedWith
  • Field Details

    • livingEntity

      public LivingEntity livingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lack$a;a:Lpr;
      intermediary field_161 Lnet/minecraft/class_66$class_67;field_161:Lnet/minecraft/class_1752;
      named livingEntity Lnet/minecraft/enchantment/EnchantmentHelper$OnAttackedWith;livingEntity:Lnet/minecraft/entity/LivingEntity;
    • attackedEntity

      public Entity attackedEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lack$a;b:Lpk;
      intermediary field_162 Lnet/minecraft/class_66$class_67;field_162:Lnet/minecraft/class_1745;
      named attackedEntity Lnet/minecraft/enchantment/EnchantmentHelper$OnAttackedWith;attackedEntity:Lnet/minecraft/entity/Entity;
  • Constructor Details

    • OnAttackedWith

      private OnAttackedWith()
  • Method Details

    • accept

      public void accept​(Enchantment enchantment, int power)
      Specified by:
      accept in interface EnchantmentHelper.Listener
      Mappings:
      Namespace Name Mixin selector
      official a Lack$c;a(Laci;I)V
      intermediary method_123 Lnet/minecraft/class_66$class_69;method_123(Lnet/minecraft/class_64;I)V
      named accept Lnet/minecraft/enchantment/EnchantmentHelper$Listener;accept(Lnet/minecraft/enchantment/Enchantment;I)V