net.minecraft.world.item.enchantment

public record ConditionalEffect<T>

dcx
net.minecraft.world.item.enchantment.ConditionalEffect
net.minecraft.class_9698
net.minecraft.unmapped.C_blsrbzwc
net.minecraft.enchantment.effect.EnchantmentEffectEntry
net.minecraft.enchantment.effect.ConditionalEnchantmentEffect
net.minecraft.src.C_336434_
net.minecraft.world.item.enchantment.ConditionalEffect

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public static com.mojang.serialization.Codec<LootItemCondition>
a(baj arg0)
conditionCodec(ContextKeySet arg0)
method_60007(class_176 arg0)
m_hermtlnd(C_ykthnceq arg0)
createRequirementsCodec(ContextType lootContextType)
createRequirementsCodec(ContextKeySet arg0)
m_340625_(C_345950_ p_361269_)
public static <T> com.mojang.serialization.Codec<ConditionalEffect<T>>
a(com.mojang.serialization.Codec<T> arg0, baj arg1)
codec(com.mojang.serialization.Codec<T> arg0, ContextKeySet arg1)
method_60004(com.mojang.serialization.Codec<T> arg0, class_176 arg1)
m_oxjhgupg(com.mojang.serialization.Codec<T> arg0, C_ykthnceq arg1)
createCodec(com.mojang.serialization.Codec<T> effectCodec, ContextType lootContextType)
createCodec(com.mojang.serialization.Codec<T> codec, ContextKeySet arg1)
m_340218_(com.mojang.serialization.Codec<T> p_342730_, C_345950_ p_369317_)
public boolean
a(evs arg0)
matches(LootContext arg0)
method_60006(class_47 arg0)
m_pxcwohpj(C_iakykpgh arg0)
test(LootContext context)
test(LootContext lootContext)
m_339110_(C_2811_ arg0)
public T
a()
effect()
comp_2680()
m_jshufgpi()
effect()
effect()
f_337100_()
public Optional<LootItemCondition>
b()
requirements()
comp_2681()
m_pbofxqjv()
requirements()
requirements()
f_337200_()