Uses of Enum Class
net.minecraft.world.item.enchantment.EnchantmentTarget
-
Uses of EnchantmentTarget in net.minecraft.world.item.enchantment
Modifier and TypeFieldDescriptionprivate final EnchantmentTarget
TargetedConditionalEffect.affected
The field for theaffected
record component.private final EnchantmentTarget
TargetedConditionalEffect.enchanted
The field for theenchanted
record component.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<EnchantmentTarget> EnchantmentTarget.CODEC
Modifier and TypeMethodDescriptionTargetedConditionalEffect.affected()
Returns the value of theaffected
record component.TargetedConditionalEffect.enchanted()
Returns the value of theenchanted
record component.static EnchantmentTarget
Returns the enum constant of this class with the specified name.static EnchantmentTarget[]
EnchantmentTarget.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionvoid
Enchantment.doPostAttack
(ServerLevel p_344857_, int p_44688_, EnchantedItemInUse p_345323_, EnchantmentTarget p_345287_, Entity p_44687_, DamageSource p_345177_) Enchantment.Builder.withEffect
(DataComponentType<List<TargetedConditionalEffect<E>>> p_346304_, EnchantmentTarget p_346333_, EnchantmentTarget p_345829_, E p_345094_) Enchantment.Builder.withEffect
(DataComponentType<List<TargetedConditionalEffect<E>>> p_345227_, EnchantmentTarget p_346076_, EnchantmentTarget p_345283_, E p_346194_, LootItemCondition.Builder p_345933_) ModifierConstructorDescriptionTargetedConditionalEffect
(EnchantmentTarget enchanted, EnchantmentTarget affected, T effect, Optional<LootItemCondition> requirements) Creates an instance of aTargetedConditionalEffect
record class.