public class MatchToolLootCondition extends Object implements LootCondition
| Modifier and Type | Class and Description |
|---|---|
static class |
MatchToolLootCondition.Factory |
LootCondition.Builder| Modifier and Type | Field and Description |
|---|---|
private ItemPredicate |
predicate |
| Constructor and Description |
|---|
MatchToolLootCondition(ItemPredicate predicate) |
| Modifier and Type | Method and Description |
|---|---|
static LootCondition.Builder |
builder(ItemPredicate.Builder predicate) |
Set<LootContextParameter<?>> |
getRequiredParameters() |
boolean |
test(LootContext lootContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckprivate final ItemPredicate predicate
public MatchToolLootCondition(ItemPredicate predicate)
public Set<LootContextParameter<?>> getRequiredParameters()
getRequiredParameters in interface LootContextAwarepublic boolean test(LootContext lootContext)
test in interface Predicate<LootContext>public static LootCondition.Builder builder(ItemPredicate.Builder predicate)