Package net.minecraft.enchantment
Class DamageEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.DamageEnchantment
- Mappings:
Namespace Name official ckbintermediary 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
target, translationKey -
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 aLckb;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 bLckb;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 cLckb;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 gLckb;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 hLckb;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 iLckb;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 jLckb;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 dLckb;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>Lckb;<init>(Lcke$a;I[Lbfm;)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 aLcke;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 bLcke;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 aLcke;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 aLcke;a(ILbgc;)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 aLcke;a(Lcke;)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 aLcke;a(Lcfx;)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 aLcke;a(Lbfx;Lbfh;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
-