net.minecraft.world.item.enchantment

public record TargetedConditionalEffect<T>

dei
net.minecraft.world.item.enchantment.TargetedConditionalEffect
net.minecraft.class_9710
net.minecraft.enchantment.effect.TargetedEnchantmentEffect
net.minecraft.world.item.enchantment.TargetedConditionalEffect

Field summary

Modifier and TypeField
private final EnchantmentTarget
a
enchanted
comp_2700
enchanted
private final EnchantmentTarget
b
affected
comp_2701
affected
private final T
c
effect
comp_2702
effect
private final Optional<LootItemCondition>
d
requirements
comp_2703
requirements

Constructor summary

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

Method summary

Modifier and TypeMethod
public static <S> com.mojang.serialization.Codec<TargetedConditionalEffect<S>>
a(com.mojang.serialization.Codec<S> arg0, bbo arg1)
codec(com.mojang.serialization.Codec<S> arg0, ContextKeySet arg1)
method_60203(com.mojang.serialization.Codec<S> arg0, class_176 arg1)
createPostAttackCodec(com.mojang.serialization.Codec<S> effectCodec, ContextType lootContextType)
public static <S> com.mojang.serialization.Codec<TargetedConditionalEffect<S>>
b(com.mojang.serialization.Codec<S> arg0, bbo arg1)
equipmentDropsCodec(com.mojang.serialization.Codec<S> arg0, ContextKeySet arg1)
method_60208(com.mojang.serialization.Codec<S> arg0, class_176 arg1)
createEquipmentDropsCodec(com.mojang.serialization.Codec<S> effectCodec, ContextType lootContextType)
public boolean
a(ewp arg0)
matches(LootContext arg0)
method_60207(class_47 arg0)
test(LootContext lootContext)
public EnchantmentTarget
a()
enchanted()
comp_2700()
enchanted()
public EnchantmentTarget
b()
affected()
comp_2701()
affected()
public T
c()
effect()
comp_2702()
effect()
public Optional<LootItemCondition>
d()
requirements()
comp_2703()
requirements()