Package net.minecraft.enchantment
Class ThornsEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.ThornsEnchantment
- All Implemented Interfaces:
ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/enchantment/ThornsEnchantment
intermediary net/minecraft/class_1906
official dan
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.enchantment.Enchantment
Enchantment.Cost, Enchantment.Properties
-
Field Summary
Fields inherited from class net.minecraft.enchantment.Enchantment
translationKey
Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getDamageAmount
(int level, Random random) void
onUserDamaged
(LivingEntity user, Entity attacker, int level) static boolean
shouldDamageAttacker
(int level, Random random) Methods inherited from class net.minecraft.enchantment.Enchantment
byRawId, canAccept, canCombine, constantCost, getAnvilCost, getApplicableItems, getAttackDamage, getEquipment, getMaxLevel, getMaxPower, getMinLevel, getMinPower, getName, getOrCreateTranslationKey, getProtectionAmount, getRegistryEntry, getRequiredFeatures, getTranslationKey, getWeight, isAcceptableItem, isAvailableForEnchantedBookOffer, isAvailableForRandomSelection, isCursed, isPrimaryItem, isTreasure, leveledCost, onAttack, onTargetDamaged, properties, properties, properties
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
ATTACK_CHANCE_PER_LEVEL
private static final float ATTACK_CHANCE_PER_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector named ATTACK_CHANCE_PER_LEVEL
Lnet/minecraft/enchantment/ThornsEnchantment;ATTACK_CHANCE_PER_LEVEL:F
intermediary field_30950
Lnet/minecraft/class_1906;field_30950:F
official b
Ldan;b:F
-
-
Constructor Details
-
ThornsEnchantment
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/enchantment/Enchantment;<init>(Lnet/minecraft/enchantment/Enchantment$Properties;)V
intermediary <init>
Lnet/minecraft/class_1887;<init>(Lnet/minecraft/class_1887$class_9427;)V
official <init>
Ldab;<init>(Ldab$b;)V
-
-
Method Details
-
onUserDamaged
- Overrides:
onUserDamaged
in classEnchantment
- Mappings:
Namespace Name Mixin selector named onUserDamaged
Lnet/minecraft/enchantment/Enchantment;onUserDamaged(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/Entity;I)V
intermediary method_8178
Lnet/minecraft/class_1887;method_8178(Lnet/minecraft/class_1309;Lnet/minecraft/class_1297;I)V
official b
Ldab;b(Lbtq;Lbsv;I)V
-
shouldDamageAttacker
- Mappings:
Namespace Name Mixin selector named shouldDamageAttacker
Lnet/minecraft/enchantment/ThornsEnchantment;shouldDamageAttacker(ILnet/minecraft/util/math/random/Random;)Z
intermediary method_8243
Lnet/minecraft/class_1906;method_8243(ILnet/minecraft/class_5819;)Z
official a
Ldan;a(ILazh;)Z
-
getDamageAmount
- Mappings:
Namespace Name Mixin selector named getDamageAmount
Lnet/minecraft/enchantment/ThornsEnchantment;getDamageAmount(ILnet/minecraft/util/math/random/Random;)I
intermediary method_8242
Lnet/minecraft/class_1906;method_8242(ILnet/minecraft/class_5819;)I
official b
Ldan;b(ILazh;)I
-