Uses of Record Class
net.minecraft.enchantment.effect.TargetedEnchantmentEffect
Package
Description
-
Uses of TargetedEnchantmentEffect in net.minecraft.component
Modifier and TypeFieldDescriptionstatic final ComponentType
<List<TargetedEnchantmentEffect<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.EQUIPMENT_DROPS
static final ComponentType
<List<TargetedEnchantmentEffect<EnchantmentEntityEffect>>> EnchantmentEffectComponentTypes.POST_ATTACK
-
Uses of TargetedEnchantmentEffect in net.minecraft.enchantment
Modifier and TypeMethodDescriptionstatic void
Enchantment.applyTargetedEffect
(TargetedEnchantmentEffect<EnchantmentEntityEffect> effect, ServerWorld world, int level, EnchantmentEffectContext context, Entity user, DamageSource damageSource) Modifier and TypeMethodDescriptionEnchantment.Builder.addEffect
(ComponentType<List<TargetedEnchantmentEffect<E>>> type, EnchantmentEffectTarget enchanted, EnchantmentEffectTarget affected, E effect) Enchantment.Builder.addEffect
(ComponentType<List<TargetedEnchantmentEffect<E>>> type, EnchantmentEffectTarget enchanted, EnchantmentEffectTarget affected, E effect, LootCondition.Builder requirements) -
Uses of TargetedEnchantmentEffect in net.minecraft.enchantment.effect
Modifier and TypeMethodDescriptionstatic <S> com.mojang.serialization.Codec
<TargetedEnchantmentEffect<S>> TargetedEnchantmentEffect.createEquipmentDropsCodec
(com.mojang.serialization.Codec<S> effectCodec, ContextType lootContextType) static <S> com.mojang.serialization.Codec
<TargetedEnchantmentEffect<S>> TargetedEnchantmentEffect.createPostAttackCodec
(com.mojang.serialization.Codec<S> effectCodec, ContextType lootContextType)