Class DamageEnchantment

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

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

    • ALL_INDEX

      public static final int ALL_INDEX
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbyn;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:
      Mappings:
      Namespace Name Mixin selector
      official b Lbyn;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:
      Mappings:
      Namespace Name Mixin selector
      official c Lbyn;c:I
      intermediary field_30949 Lnet/minecraft/class_1882;field_30949:I
      named ARTHROPODS_INDEX Lnet/minecraft/enchantment/DamageEnchantment;ARTHROPODS_INDEX:I
    • TYPE_NAMES

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

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

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

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

      public final int typeIndex
      Mappings:
      Namespace Name Mixin selector
      official d Lbyn;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> Lbyn;<init>(Lbyq$a;I[Laxp;)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 Lbyq;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 Lbyq;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 Lbyq;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 Lbyq;a(ILayd;)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
      Returns:
      whether this enchantment can exist on an item stack with the other enchantment
      Mappings:
      Namespace Name Mixin selector
      official a Lbyq;a(Lbyq;)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 Lbyq;a(Lbuw;)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 Lbyq;a(Laxy;Laxk;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