Package net.minecraft.enchantment
Class DamageEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.DamageEnchantment
- Mappings:
Namespace Name official bug
intermediary net/minecraft/class_1882
named net/minecraft/enchantment/DamageEnchantment
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.enchantment.Enchantment
Enchantment.Rarity
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
static int
private static int[]
private static int[]
private static int[]
int
private static String[]
static int
Fields inherited from class net.minecraft.enchantment.Enchantment
translationKey, type
-
Constructor Summary
ConstructorsConstructorDescriptionDamageEnchantment(Enchantment.Rarity weight, int typeIndex, EquipmentSlot[] slots)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canAccept(Enchantment other)
Returns whether this enchantment can exist on an item stack with theother
enchantment.float
getAttackDamage(int level, EntityGroup group)
int
int
getMaxPower(int level)
int
getMinPower(int level)
boolean
isAcceptableItem(ItemStack stack)
void
onTargetDamaged(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 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
- 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
- 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 classEnchantment
- 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 classEnchantment
- 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 classEnchantment
- 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
- Overrides:
getAttackDamage
in classEnchantment
- 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
Returns whether this enchantment can exist on an item stack with theother
enchantment.- Overrides:
canAccept
in classEnchantment
- 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
- Overrides:
isAcceptableItem
in classEnchantment
- 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
- Overrides:
onTargetDamaged
in classEnchantment
- 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
-