net.minecraft.world.item.enchantment

public record ConditionalEffect<T>

daa
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(eul arg0)
conditionCodec(LootContextParamSet arg0)
method_60007(class_176 arg0)
m_hermtlnd(C_vczsvjil arg0)
createRequirementsCodec(LootContextType lootContextType)
createRequirementsCodec(LootContextType lootType)
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)
m_oxjhgupg(com.mojang.serialization.Codec<T> arg0, C_vczsvjil arg1)
createCodec(com.mojang.serialization.Codec<T> effectCodec, LootContextType lootContextType)
createCodec(com.mojang.serialization.Codec<T> codec, LootContextType lootType)
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)
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_()