Package net.minecraft.enchantment
Class DamageEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.DamageEnchantment
- Mappings:
Namespace Name official btqintermediary net/minecraft/class_1882named net/minecraft/enchantment/DamageEnchantment
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.enchantment.Enchantment
Enchantment.Rarity -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic intprivate static int[]private static int[]private static int[]intprivate static String[]static intFields inherited from class net.minecraft.enchantment.Enchantment
translationKey, type -
Constructor Summary
ConstructorsConstructorDescriptionDamageEnchantment(Enchantment.Rarity weight, int typeIndex, EquipmentSlot[] slots) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAccept(Enchantment other)Returns whether this enchantment can exist on an item stack with theotherenchantment.floatgetAttackDamage(int level, EntityGroup group)intintgetMaxPower(int level)intgetMinPower(int level)booleanisAcceptableItem(ItemStack stack)voidonTargetDamaged(LivingEntity user, Entity target, int level)Methods inherited from class net.minecraft.enchantment.Enchantment
byRawId, canCombine, getEquipment, getMinLevel, getName, getOrCreateTranslationKey, getProtectionAmount, getRarity, getTranslationKey, isAvailableForEnchantedBookOffer, isAvailableForRandomSelection, isCursed, isTreasure, onUserDamaged
-
Field Details
-
ALL_INDEX
public static final int ALL_INDEX- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official aLbtq;a:Iintermediary field_30947Lnet/minecraft/class_1882;field_30947:Inamed ALL_INDEXLnet/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 bLbtq;b:Iintermediary field_30948Lnet/minecraft/class_1882;field_30948:Inamed UNDEAD_INDEXLnet/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 cLbtq;c:Iintermediary field_30949Lnet/minecraft/class_1882;field_30949:Inamed ARTHROPODS_INDEXLnet/minecraft/enchantment/DamageEnchantment;ARTHROPODS_INDEX:I
-
typeNames
- Mappings:
Namespace Name Mixin selector official gLbtq;g:[Ljava/lang/String;intermediary field_9065Lnet/minecraft/class_1882;field_9065:[Ljava/lang/String;named typeNamesLnet/minecraft/enchantment/DamageEnchantment;typeNames:[Ljava/lang/String;
-
basePowers
private static final int[] basePowers- Mappings:
Namespace Name Mixin selector official hLbtq;h:[Iintermediary field_9063Lnet/minecraft/class_1882;field_9063:[Inamed basePowersLnet/minecraft/enchantment/DamageEnchantment;basePowers:[I
-
powersPerLevel
private static final int[] powersPerLevel- Mappings:
Namespace Name Mixin selector official iLbtq;i:[Iintermediary field_9066Lnet/minecraft/class_1882;field_9066:[Inamed powersPerLevelLnet/minecraft/enchantment/DamageEnchantment;powersPerLevel:[I
-
minMaxPowerDifferences
private static final int[] minMaxPowerDifferences- Mappings:
Namespace Name Mixin selector official jLbtq;j:[Iintermediary field_9064Lnet/minecraft/class_1882;field_9064:[Inamed minMaxPowerDifferencesLnet/minecraft/enchantment/DamageEnchantment;minMaxPowerDifferences:[I
-
typeIndex
public final int typeIndex- Mappings:
Namespace Name Mixin selector official dLbtq;d:Iintermediary field_9067Lnet/minecraft/class_1882;field_9067:Inamed typeIndexLnet/minecraft/enchantment/DamageEnchantment;typeIndex:I
-
-
Constructor Details
-
DamageEnchantment
- Mappings:
Namespace Name Mixin selector official <init>Lbtq;<init>(Lbtt$a;I[Lasu;)Vintermediary <init>Lnet/minecraft/class_1882;<init>(Lnet/minecraft/class_1887$class_1888;I[Lnet/minecraft/class_1304;)Vnamed <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:
getMinPowerin classEnchantment- Mappings:
Namespace Name Mixin selector official aLbtt;a(I)Iintermediary method_8182Lnet/minecraft/class_1887;method_8182(I)Inamed getMinPowerLnet/minecraft/enchantment/Enchantment;getMinPower(I)I
-
getMaxPower
public int getMaxPower(int level)- Overrides:
getMaxPowerin classEnchantment- Mappings:
Namespace Name Mixin selector official bLbtt;b(I)Iintermediary method_20742Lnet/minecraft/class_1887;method_20742(I)Inamed getMaxPowerLnet/minecraft/enchantment/Enchantment;getMaxPower(I)I
-
getMaxLevel
public int getMaxLevel()- Overrides:
getMaxLevelin classEnchantment- Mappings:
Namespace Name Mixin selector official aLbtt;a()Iintermediary method_8183Lnet/minecraft/class_1887;method_8183()Inamed getMaxLevelLnet/minecraft/enchantment/Enchantment;getMaxLevel()I
-
getAttackDamage
- Overrides:
getAttackDamagein classEnchantment- Mappings:
Namespace Name Mixin selector official aLbtt;a(ILati;)Fintermediary method_8196Lnet/minecraft/class_1887;method_8196(ILnet/minecraft/class_1310;)Fnamed getAttackDamageLnet/minecraft/enchantment/Enchantment;getAttackDamage(ILnet/minecraft/entity/EntityGroup;)F
-
canAccept
Returns whether this enchantment can exist on an item stack with theotherenchantment.- Overrides:
canAcceptin classEnchantment- Mappings:
Namespace Name Mixin selector official aLbtt;a(Lbtt;)Zintermediary method_8180Lnet/minecraft/class_1887;method_8180(Lnet/minecraft/class_1887;)Znamed canAcceptLnet/minecraft/enchantment/Enchantment;canAccept(Lnet/minecraft/enchantment/Enchantment;)Z
-
isAcceptableItem
- Overrides:
isAcceptableItemin classEnchantment- Mappings:
Namespace Name Mixin selector official aLbtt;a(Lbpz;)Zintermediary method_8192Lnet/minecraft/class_1887;method_8192(Lnet/minecraft/class_1799;)Znamed isAcceptableItemLnet/minecraft/enchantment/Enchantment;isAcceptableItem(Lnet/minecraft/item/ItemStack;)Z
-
onTargetDamaged
- Overrides:
onTargetDamagedin classEnchantment- Mappings:
Namespace Name Mixin selector official aLbtt;a(Latd;Lasp;I)Vintermediary method_8189Lnet/minecraft/class_1887;method_8189(Lnet/minecraft/class_1309;Lnet/minecraft/class_1297;I)Vnamed onTargetDamagedLnet/minecraft/enchantment/Enchantment;onTargetDamaged(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/Entity;I)V
-