net.minecraft.world.item.enchantment

public record ConditionalEffect<T>

dcx
net.minecraft.world.item.enchantment.ConditionalEffect
net.minecraft.class_9698
net.minecraft.enchantment.effect.EnchantmentEffectEntry
net.minecraft.world.item.enchantment.ConditionalEffect

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public static com.mojang.serialization.Codec<LootItemCondition>
a(baj arg0)
conditionCodec(ContextKeySet arg0)
method_60007(class_176 arg0)
createRequirementsCodec(ContextType lootContextType)
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)
createCodec(com.mojang.serialization.Codec<T> effectCodec, ContextType lootContextType)
public boolean
a(evs arg0)
matches(LootContext arg0)
method_60006(class_47 arg0)
test(LootContext context)
public T
a()
effect()
comp_2680()
effect()
public Optional<LootItemCondition>
b()
requirements()
comp_2681()
requirements()