net.minecraft.world.item.enchantment

public record ConditionalEffect<T>

daa
net.minecraft.world.item.enchantment.ConditionalEffect
net.minecraft.class_9698
net.minecraft.enchantment.effect.EnchantmentEffectEntry
net.minecraft.src.C_336434_
net.minecraft.world.item.enchantment.ConditionalEffect

Field summary

Modifier and TypeField
private final T
a
effect
comp_2680
effect
f_337100_
private final Optional<LootItemCondition>
b
requirements
comp_2681
requirements
f_337200_

Constructor summary

ModifierConstructor
public (T requirements, Optional<LootItemCondition> arg1)

Method summary

Modifier and TypeMethod
public static com.mojang.serialization.Codec<LootItemCondition>
a(eul arg0)
conditionCodec(LootContextParamSet arg0)
method_60007(class_176 arg0)
createRequirementsCodec(LootContextType lootContextType)
m_340625_(C_2970_ p_345298_)
public static <T> com.mojang.serialization.Codec<ConditionalEffect<T>>
a(com.mojang.serialization.Codec<T> arg0, eul arg1)
codec(com.mojang.serialization.Codec<T> arg0, LootContextParamSet arg1)
method_60004(com.mojang.serialization.Codec<T> arg0, class_176 arg1)
createCodec(com.mojang.serialization.Codec<T> effectCodec, LootContextType lootContextType)
m_340218_(com.mojang.serialization.Codec<T> p_342730_, C_2970_ p_343196_)
public boolean
a(err arg0)
matches(LootContext arg0)
method_60006(class_47 arg0)
test(LootContext context)
m_339110_(C_2811_ arg0)
public T
a()
effect()
comp_2680()
effect()
f_337100_()
public Optional<LootItemCondition>
b()
requirements()
comp_2681()
requirements()
f_337200_()