Class ThornsEnchantment

java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.ThornsEnchantment
All Implemented Interfaces:
ToggleableFeature

public class ThornsEnchantment extends Enchantment
Mappings:
Namespace Name
named net/minecraft/enchantment/ThornsEnchantment
intermediary net/minecraft/class_1906
official dao
  • Field Details

    • ATTACK_CHANCE_PER_LEVEL

      private static final float ATTACK_CHANCE_PER_LEVEL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ATTACK_CHANCE_PER_LEVEL Lnet/minecraft/enchantment/ThornsEnchantment;ATTACK_CHANCE_PER_LEVEL:F
      intermediary field_30950 Lnet/minecraft/class_1906;field_30950:F
      official b Ldao;b:F
  • Constructor Details

    • ThornsEnchantment

      public ThornsEnchantment(Enchantment.Properties properties)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/enchantment/Enchantment;<init>(Lnet/minecraft/enchantment/Enchantment$Properties;)V
      intermediary <init> Lnet/minecraft/class_1887;<init>(Lnet/minecraft/class_1887$class_9427;)V
      official <init> Ldac;<init>(Ldac$b;)V
  • Method Details

    • onUserDamaged

      public void onUserDamaged(LivingEntity user, Entity attacker, int level)
      Overrides:
      onUserDamaged in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      named onUserDamaged Lnet/minecraft/enchantment/Enchantment;onUserDamaged(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/Entity;I)V
      intermediary method_8178 Lnet/minecraft/class_1887;method_8178(Lnet/minecraft/class_1309;Lnet/minecraft/class_1297;I)V
      official b Ldac;b(Lbtr;Lbsw;I)V
    • shouldDamageAttacker

      public static boolean shouldDamageAttacker(int level, Random random)
      Mappings:
      Namespace Name Mixin selector
      named shouldDamageAttacker Lnet/minecraft/enchantment/ThornsEnchantment;shouldDamageAttacker(ILnet/minecraft/util/math/random/Random;)Z
      intermediary method_8243 Lnet/minecraft/class_1906;method_8243(ILnet/minecraft/class_5819;)Z
      official a Ldao;a(ILazh;)Z
    • getDamageAmount

      public static int getDamageAmount(int level, Random random)
      Mappings:
      Namespace Name Mixin selector
      named getDamageAmount Lnet/minecraft/enchantment/ThornsEnchantment;getDamageAmount(ILnet/minecraft/util/math/random/Random;)I
      intermediary method_8242 Lnet/minecraft/class_1906;method_8242(ILnet/minecraft/class_5819;)I
      official b Ldao;b(ILazh;)I