Package net.minecraft.enchantment
Class DamageEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.DamageEnchantment
public class DamageEnchantment extends Enchantment
- Mappings:
Namespace Name official brm
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
Fields Modifier and Type Field Description private static int[]
field_9063
private static int[]
field_9064
private static int[]
field_9066
int
typeIndex
private static String[]
typeNames
Fields inherited from class net.minecraft.enchantment.Enchantment
translationKey, type
-
Constructor Summary
Constructors Constructor Description DamageEnchantment(Enchantment.Rarity weight, int typeIndex, EquipmentSlot[] slots)
-
Method Summary
Modifier and Type Method Description boolean
canAccept(Enchantment other)
Returns whether this enchantment can exist on an item stack with theother
enchantment.float
getAttackDamage(int level, EntityGroup group)
int
getMaxLevel()
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
-
typeNames
- Mappings:
Namespace Name Mixin selector official d
Lbrm;d:[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;
-
field_9063
private static final int[] field_9063- Mappings:
Namespace Name Mixin selector official e
Lbrm;e:[I
intermediary field_9063
Lnet/minecraft/class_1882;field_9063:[I
named field_9063
Lnet/minecraft/enchantment/DamageEnchantment;field_9063:[I
-
field_9066
private static final int[] field_9066- Mappings:
Namespace Name Mixin selector official f
Lbrm;f:[I
intermediary field_9066
Lnet/minecraft/class_1882;field_9066:[I
named field_9066
Lnet/minecraft/enchantment/DamageEnchantment;field_9066:[I
-
field_9064
private static final int[] field_9064- Mappings:
Namespace Name Mixin selector official g
Lbrm;g:[I
intermediary field_9064
Lnet/minecraft/class_1882;field_9064:[I
named field_9064
Lnet/minecraft/enchantment/DamageEnchantment;field_9064:[I
-
typeIndex
public final int typeIndex- Mappings:
Namespace Name Mixin selector official a
Lbrm;a: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>
Lbrm;<init>(Lbrp$a;I[Lara;)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
Lbrp;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
Lbrp;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
Lbrp;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
Lbrp;a(ILarm;)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
Lbrp;a(Lbrp;)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
Lbrp;a(Lbnv;)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
Lbrp;a(Lari;Laqv;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
-