net.minecraft.world.item.enchantment

public record TargetedConditionalEffect<T>

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

Field summary

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

Constructor summary

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

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)
createPostAttackCodec(com.mojang.serialization.Codec<S> effectCodec, LootContextType lootContextType)
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)
createEquipmentDropsCodec(com.mojang.serialization.Codec<S> effectCodec, LootContextType lootContextType)
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)
test(LootContext lootContext)
m_339941_(C_2811_ arg0)
public EnchantmentTarget
a()
enchanted()
comp_2700()
enchanted()
f_337465_()
public EnchantmentTarget
b()
affected()
comp_2701()
affected()
f_337277_()
public T
c()
effect()
comp_2702()
effect()
f_337334_()
public Optional<LootItemCondition>
d()
requirements()
comp_2703()
requirements()
f_336909_()