Class DamageEnchantment

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

public class DamageEnchantment extends Enchantment
Mappings:
Namespace Name
official bug
intermediary net/minecraft/class_1882
named net/minecraft/enchantment/DamageEnchantment
  • Field Details

    • ALL_INDEX

      public static final int ALL_INDEX
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official a Lbug;a:I
      intermediary field_30947 Lnet/minecraft/class_1882;field_30947:I
      named ALL_INDEX Lnet/minecraft/enchantment/DamageEnchantment;ALL_INDEX:I
    • UNDEAD_INDEX

      public static final int UNDEAD_INDEX
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official b Lbug;b:I
      intermediary field_30948 Lnet/minecraft/class_1882;field_30948:I
      named UNDEAD_INDEX Lnet/minecraft/enchantment/DamageEnchantment;UNDEAD_INDEX:I
    • ARTHROPODS_INDEX

      public static final int ARTHROPODS_INDEX
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official c Lbug;c:I
      intermediary field_30949 Lnet/minecraft/class_1882;field_30949:I
      named ARTHROPODS_INDEX Lnet/minecraft/enchantment/DamageEnchantment;ARTHROPODS_INDEX:I
    • typeNames

      private static final String[] typeNames
      Mappings:
      Namespace Name Mixin selector
      official g Lbug;g:[Ljava/lang/String;
      intermediary field_9065 Lnet/minecraft/class_1882;field_9065:[Ljava/lang/String;
      named typeNames Lnet/minecraft/enchantment/DamageEnchantment;typeNames:[Ljava/lang/String;
    • basePowers

      private static final int[] basePowers
      Mappings:
      Namespace Name Mixin selector
      official h Lbug;h:[I
      intermediary field_9063 Lnet/minecraft/class_1882;field_9063:[I
      named basePowers Lnet/minecraft/enchantment/DamageEnchantment;basePowers:[I
    • powersPerLevel

      private static final int[] powersPerLevel
      Mappings:
      Namespace Name Mixin selector
      official i Lbug;i:[I
      intermediary field_9066 Lnet/minecraft/class_1882;field_9066:[I
      named powersPerLevel Lnet/minecraft/enchantment/DamageEnchantment;powersPerLevel:[I
    • minMaxPowerDifferences

      private static final int[] minMaxPowerDifferences
      Mappings:
      Namespace Name Mixin selector
      official j Lbug;j:[I
      intermediary field_9064 Lnet/minecraft/class_1882;field_9064:[I
      named minMaxPowerDifferences Lnet/minecraft/enchantment/DamageEnchantment;minMaxPowerDifferences:[I
    • typeIndex

      public final int typeIndex
      Mappings:
      Namespace Name Mixin selector
      official d Lbug;d:I
      intermediary field_9067 Lnet/minecraft/class_1882;field_9067:I
      named typeIndex Lnet/minecraft/enchantment/DamageEnchantment;typeIndex:I
  • Constructor Details

    • DamageEnchantment

      public DamageEnchantment(Enchantment.Rarity weight, int typeIndex, EquipmentSlot[] slots)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbug;<init>(Lbuj$a;I[Latk;)V
      intermediary <init> Lnet/minecraft/class_1882;<init>(Lnet/minecraft/class_1887$class_1888;I[Lnet/minecraft/class_1304;)V
      named <init> Lnet/minecraft/enchantment/DamageEnchantment;<init>(Lnet/minecraft/enchantment/Enchantment$Rarity;I[Lnet/minecraft/entity/EquipmentSlot;)V
  • Method Details

    • getMinPower

      public int getMinPower(int level)
      Overrides:
      getMinPower in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      official a Lbuj;a(I)I
      intermediary method_8182 Lnet/minecraft/class_1887;method_8182(I)I
      named getMinPower Lnet/minecraft/enchantment/Enchantment;getMinPower(I)I
    • getMaxPower

      public int getMaxPower(int level)
      Overrides:
      getMaxPower in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      official b Lbuj;b(I)I
      intermediary method_20742 Lnet/minecraft/class_1887;method_20742(I)I
      named getMaxPower Lnet/minecraft/enchantment/Enchantment;getMaxPower(I)I
    • getMaxLevel

      public int getMaxLevel()
      Overrides:
      getMaxLevel in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      official a Lbuj;a()I
      intermediary method_8183 Lnet/minecraft/class_1887;method_8183()I
      named getMaxLevel Lnet/minecraft/enchantment/Enchantment;getMaxLevel()I
    • getAttackDamage

      public float getAttackDamage(int level, EntityGroup group)
      Overrides:
      getAttackDamage in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      official a Lbuj;a(ILaty;)F
      intermediary method_8196 Lnet/minecraft/class_1887;method_8196(ILnet/minecraft/class_1310;)F
      named getAttackDamage Lnet/minecraft/enchantment/Enchantment;getAttackDamage(ILnet/minecraft/entity/EntityGroup;)F
    • canAccept

      public boolean canAccept(Enchantment other)
      Returns whether this enchantment can exist on an item stack with the other enchantment.
      Overrides:
      canAccept in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      official a Lbuj;a(Lbuj;)Z
      intermediary method_8180 Lnet/minecraft/class_1887;method_8180(Lnet/minecraft/class_1887;)Z
      named canAccept Lnet/minecraft/enchantment/Enchantment;canAccept(Lnet/minecraft/enchantment/Enchantment;)Z
    • isAcceptableItem

      public boolean isAcceptableItem(ItemStack stack)
      Overrides:
      isAcceptableItem in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      official a Lbuj;a(Lbqp;)Z
      intermediary method_8192 Lnet/minecraft/class_1887;method_8192(Lnet/minecraft/class_1799;)Z
      named isAcceptableItem Lnet/minecraft/enchantment/Enchantment;isAcceptableItem(Lnet/minecraft/item/ItemStack;)Z
    • onTargetDamaged

      public void onTargetDamaged(LivingEntity user, Entity target, int level)
      Overrides:
      onTargetDamaged in class Enchantment
      Mappings:
      Namespace Name Mixin selector
      official a Lbuj;a(Latt;Latf;I)V
      intermediary method_8189 Lnet/minecraft/class_1887;method_8189(Lnet/minecraft/class_1309;Lnet/minecraft/class_1297;I)V
      named onTargetDamaged Lnet/minecraft/enchantment/Enchantment;onTargetDamaged(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/Entity;I)V