public class MatchTool extends java.lang.Object implements ILootCondition
Modifier and Type | Class and Description |
---|---|
static class |
MatchTool.Serializer |
ILootCondition.AbstractSerializer<T extends ILootCondition>, ILootCondition.IBuilder
Modifier and Type | Field and Description |
---|---|
private ItemPredicate |
predicate |
Constructor and Description |
---|
MatchTool(ItemPredicate predicate) |
Modifier and Type | Method and Description |
---|---|
static ILootCondition.IBuilder |
builder(ItemPredicate.Builder p_216012_0_) |
java.util.Set<LootParameter<?>> |
getRequiredParameters() |
boolean |
test(LootContext p_test_1_) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_225580_a_
private final ItemPredicate predicate
public MatchTool(ItemPredicate predicate)
public java.util.Set<LootParameter<?>> getRequiredParameters()
getRequiredParameters
in interface IParameterized
public boolean test(LootContext p_test_1_)
test
in interface java.util.function.Predicate<LootContext>
public static ILootCondition.IBuilder builder(ItemPredicate.Builder p_216012_0_)