Package net.minecraft.enchantment
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$aintermediary net/minecraft/class_66$class_67named net/minecraft/enchantment/EnchantmentHelper$OnAttackedWith
-
Field Summary
Fields Modifier and Type Field Description EntityattackedEntityLivingEntitylivingEntity -
Constructor Summary
Constructors Modifier Constructor Description privateOnAttackedWith() -
Method Summary
Modifier and Type Method Description voidaccept(Enchantment enchantment, int power)
-
Field Details
-
livingEntity
- Mappings:
Namespace Name Mixin selector official aLack$a;a:Lpr;intermediary field_161Lnet/minecraft/class_66$class_67;field_161:Lnet/minecraft/class_1752;named livingEntityLnet/minecraft/enchantment/EnchantmentHelper$OnAttackedWith;livingEntity:Lnet/minecraft/entity/LivingEntity;
-
attackedEntity
- Mappings:
Namespace Name Mixin selector official bLack$a;b:Lpk;intermediary field_162Lnet/minecraft/class_66$class_67;field_162:Lnet/minecraft/class_1745;named attackedEntityLnet/minecraft/enchantment/EnchantmentHelper$OnAttackedWith;attackedEntity:Lnet/minecraft/entity/Entity;
-
-
Constructor Details
-
OnAttackedWith
private OnAttackedWith()
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceEnchantmentHelper.Listener- Mappings:
Namespace Name Mixin selector official aLack$c;a(Laci;I)Vintermediary method_123Lnet/minecraft/class_66$class_69;method_123(Lnet/minecraft/class_64;I)Vnamed acceptLnet/minecraft/enchantment/EnchantmentHelper$Listener;accept(Lnet/minecraft/enchantment/Enchantment;I)V
-