Package net.minecraft.enchantment
Class DamageEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.DamageEnchantment
- Mappings:
Namespace Name official byn
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
Modifier and TypeFieldDescriptionstatic final int
static final int
private static final int[]
private static final int[]
private static final int[]
private static final String[]
final int
static final int
Fields inherited from class net.minecraft.enchantment.Enchantment
translationKey, type
-
Constructor Summary
ConstructorDescriptionDamageEnchantment
(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:
- 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
- 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
- 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 classEnchantment
- 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 classEnchantment
- 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 classEnchantment
- 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
- Overrides:
getAttackDamage
in classEnchantment
- 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
Returns whether this enchantment can exist on an item stack with theother
enchantment.- Overrides:
canAccept
in classEnchantment
- 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
- Overrides:
isAcceptableItem
in classEnchantment
- 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
- Overrides:
onTargetDamaged
in classEnchantment
- 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
-