net.minecraft.world.item.enchantment

public record TargetedConditionalEffect<T>

dak
net.minecraft.world.item.enchantment.TargetedConditionalEffect
net.minecraft.class_9710
net.minecraft.unmapped.C_idcxfrny
net.minecraft.enchantment.effect.TargetedEnchantmentEffect
net.minecraft.enchantment.effect.TargetConditionalEnchantmentEffect
net.minecraft.src.C_336488_
net.minecraft.world.item.enchantment.TargetedConditionalEffect

Field summary

Modifier and TypeField
private final EnchantmentTarget
a
enchanted
comp_2700
f_oyxdzaex
enchanted
enchanted
f_337465_
private final EnchantmentTarget
b
affected
comp_2701
f_nlzfbdhq
affected
affected
f_337277_
private final T
c
effect
comp_2702
f_ufvfxnar
effect
effect
f_337334_
private final Optional<LootItemCondition>
d
requirements
comp_2703
f_jbofongs
requirements
requirements
f_336909_

Constructor summary

ModifierConstructor
public (EnchantmentTarget enchanted, EnchantmentTarget affected, T effect, Optional<LootItemCondition> requirements)

Method summary

Modifier and TypeMethod
public static <S> com.mojang.serialization.Codec<TargetedConditionalEffect<S>>
a(com.mojang.serialization.Codec<S> arg0, eul arg1)
codec(com.mojang.serialization.Codec<S> arg0, LootContextParamSet arg1)
method_60203(com.mojang.serialization.Codec<S> arg0, class_176 arg1)
m_lobkvims(com.mojang.serialization.Codec<S> arg0, C_vczsvjil arg1)
createPostAttackCodec(com.mojang.serialization.Codec<S> effectCodec, LootContextType lootContextType)
createCodec(com.mojang.serialization.Codec<S> codec, LootContextType type)
m_339236_(com.mojang.serialization.Codec<S> p_345149_, C_2970_ p_344121_)
public static <S> com.mojang.serialization.Codec<TargetedConditionalEffect<S>>
b(com.mojang.serialization.Codec<S> arg0, eul arg1)
equipmentDropsCodec(com.mojang.serialization.Codec<S> arg0, LootContextParamSet arg1)
method_60208(com.mojang.serialization.Codec<S> arg0, class_176 arg1)
m_fxhflgcy(com.mojang.serialization.Codec<S> arg0, C_vczsvjil arg1)
createEquipmentDropsCodec(com.mojang.serialization.Codec<S> effectCodec, LootContextType lootContextType)
createEquipmentDropsCodec(com.mojang.serialization.Codec<S> codec, LootContextType type)
m_339725_(com.mojang.serialization.Codec<S> p_343050_, C_2970_ p_343380_)
public boolean
a(err arg0)
matches(LootContext arg0)
method_60207(class_47 arg0)
m_sbmzbkam(C_iakykpgh arg0)
test(LootContext lootContext)
matches(LootContext context)
m_339941_(C_2811_ arg0)
public EnchantmentTarget
a()
enchanted()
comp_2700()
m_cqsxonjr()
enchanted()
enchanted()
f_337465_()
public EnchantmentTarget
b()
affected()
comp_2701()
m_qvjbjzym()
affected()
affected()
f_337277_()
public T
c()
effect()
comp_2702()
m_oenqnsfp()
effect()
effect()
f_337334_()
public Optional<LootItemCondition>
d()
requirements()
comp_2703()
m_dswefyum()
requirements()
requirements()
f_336909_()