Package net.minecraft.enchantment
Class DamageEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.DamageEnchantment
- Mappings:
Namespace Name official civintermediary 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 final intstatic final intprivate static final int[]private static final int[]private static final int[]private static final String[]final intstatic final 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:
- Mappings:
Namespace Name Mixin selector official aLciv;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:
- Mappings:
Namespace Name Mixin selector official bLciv;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:
- Mappings:
Namespace Name Mixin selector official cLciv;c:Iintermediary field_30949Lnet/minecraft/class_1882;field_30949:Inamed ARTHROPODS_INDEXLnet/minecraft/enchantment/DamageEnchantment;ARTHROPODS_INDEX:I
-
TYPE_NAMES
- Mappings:
Namespace Name Mixin selector official gLciv;g:[Ljava/lang/String;intermediary field_9065Lnet/minecraft/class_1882;field_9065:[Ljava/lang/String;named TYPE_NAMESLnet/minecraft/enchantment/DamageEnchantment;TYPE_NAMES:[Ljava/lang/String;
-
BASE_POWERS
private static final int[] BASE_POWERS- Mappings:
Namespace Name Mixin selector official hLciv;h:[Iintermediary field_9063Lnet/minecraft/class_1882;field_9063:[Inamed BASE_POWERSLnet/minecraft/enchantment/DamageEnchantment;BASE_POWERS:[I
-
POWERS_PER_LEVEL
private static final int[] POWERS_PER_LEVEL- Mappings:
Namespace Name Mixin selector official iLciv;i:[Iintermediary field_9066Lnet/minecraft/class_1882;field_9066:[Inamed POWERS_PER_LEVELLnet/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 jLciv;j:[Iintermediary field_9064Lnet/minecraft/class_1882;field_9064:[Inamed MIN_MAX_POWER_DIFFERENCESLnet/minecraft/enchantment/DamageEnchantment;MIN_MAX_POWER_DIFFERENCES:[I
-
typeIndex
public final int typeIndex- Mappings:
Namespace Name Mixin selector official dLciv;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>Lciv;<init>(Lciy$a;I[Lbeq;)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 aLciy;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 bLciy;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 aLciy;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 aLciy;a(ILbff;)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- Returns:
- whether this enchantment can exist on an item stack with the
otherenchantment - Mappings:
Namespace Name Mixin selector official aLciy;a(Lciy;)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 aLciy;a(Lcer;)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 aLciy;a(Lbfa;Lbel;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
-