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

public record MatchTool

implements LootItemCondition

faf
net.minecraft.world.level.storage.loot.predicates.MatchTool
net.minecraft.class_223
net.minecraft.loot.condition.MatchToolLootCondition
net.minecraft.world.level.storage.loot.predicates.LootItemConditionMatchTool

Field summary

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

Constructor summary

ModifierConstructor
public (Optional<ItemPredicate> arg0)

Method summary

Modifier and TypeMethod
public LootItemConditionType
b()
getType()
method_29325()
getType()
public Set<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
getAllowedParameters()
public boolean
a(ewp arg0)
test(LootContext arg0)
method_946(class_47 arg0)
test(LootContext arg0)
public static LootItemCondition$Builder
a(cu$a arg0)
toolMatches(ItemPredicate$Builder arg0)
method_945(class_2073$class_2074 arg0)
builder(ItemPredicate$Builder predicate)
public Optional<ItemPredicate>
c()
predicate()
comp_1884()
predicate()