net.minecraft.world.level.storage.loot.predicates

public record MatchTool

implements LootItemCondition

eub
net.minecraft.world.level.storage.loot.predicates.MatchTool
net.minecraft.class_223
net.minecraft.loot.condition.MatchToolLootCondition
net.minecraft.src.C_3019_
net.minecraft.world.level.storage.loot.predicates.LootItemConditionMatchTool

Field summary

Modifier and TypeField
private final Optional<ItemPredicate>
b
predicate
comp_1884
predicate
f_81993_
public static final com.mojang.serialization.MapCodec<MatchTool>
a
CODEC
field_45875
CODEC
f_290941_

Constructor summary

ModifierConstructor
public (Optional<ItemPredicate> arg0)

Method summary

Modifier and TypeMethod
public LootItemConditionType
b()
getType()
method_29325()
getType()
m_7940_()
public Set<LootContextParam<?>>
a()
getReferencedContextParams()
method_293()
getRequiredParameters()
m_6231_()
public boolean
a(eqk arg0)
test(LootContext arg0)
method_946(class_47 arg0)
test(LootContext arg0)
test(C_2811_ arg0)
public static LootItemCondition$Builder
a(cp$a arg0)
toolMatches(ItemPredicate$Builder arg0)
method_945(class_2073$class_2074 arg0)
builder(ItemPredicate$Builder predicate)
m_81997_(C_1529_$C_1530_ p_81998_)
public Optional<ItemPredicate>
c()
predicate()
comp_1884()
predicate()
f_81993_()