Uses of Record Class
net.minecraft.world.item.enchantment.TargetedConditionalEffect
-
Uses of TargetedConditionalEffect in net.minecraft.world.item.enchantment
Modifier and TypeFieldDescriptionstatic final DataComponentType
<List<TargetedConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.EQUIPMENT_DROPS
static final DataComponentType
<List<TargetedConditionalEffect<EnchantmentEntityEffect>>> EnchantmentEffectComponents.POST_ATTACK
Modifier and TypeMethodDescriptionstatic <S> com.mojang.serialization.Codec
<TargetedConditionalEffect<S>> TargetedConditionalEffect.codec
(com.mojang.serialization.Codec<S> p_344749_, LootContextParamSet p_345115_) static <S> com.mojang.serialization.Codec
<TargetedConditionalEffect<S>> TargetedConditionalEffect.equipmentDropsCodec
(com.mojang.serialization.Codec<S> p_345181_, LootContextParamSet p_345924_) Modifier and TypeMethodDescriptionstatic void
Enchantment.doPostAttack
(TargetedConditionalEffect<EnchantmentEntityEffect> p_346387_, ServerLevel p_345844_, int p_344928_, EnchantedItemInUse p_345486_, Entity p_345472_, DamageSource p_345022_) Modifier and TypeMethodDescriptionEnchantment.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_)