net.minecraft.world.item.enchantment

public record ConditionalEffect<T>

ddw
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(bbo arg0)
conditionCodec(ContextKeySet arg0)
method_60007(class_176 arg0)
createRequirementsCodec(ContextType lootContextType)
m_340625_(C_345950_ p_361269_)
public static <T> com.mojang.serialization.Codec<ConditionalEffect<T>>
a(com.mojang.serialization.Codec<T> arg0, bbo arg1)
codec(com.mojang.serialization.Codec<T> arg0, ContextKeySet arg1)
method_60004(com.mojang.serialization.Codec<T> arg0, class_176 arg1)
createCodec(com.mojang.serialization.Codec<T> effectCodec, ContextType lootContextType)
m_340218_(com.mojang.serialization.Codec<T> p_342730_, C_345950_ p_369317_)
public boolean
a(ewp 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_()