Class CompositeLootItemCondition
java.lang.Object
net.minecraft.world.level.storage.loot.predicates.CompositeLootItemCondition
- All Implemented Interfaces:
Predicate<LootContext>
,LootContextUser
,LootItemCondition
- Direct Known Subclasses:
AllOfCondition
,AnyOfCondition
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Predicate<LootContext>
(package private) final LootItemCondition[]
-
Constructor Summary
ModifierConstructorDescriptionprotected
CompositeLootItemCondition
(LootItemCondition[] p_286437_, Predicate<LootContext> p_286771_) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
test
(LootContext p_286298_) void
validate
(ValidationContext p_286819_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams
Methods inherited from interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition
getType
-
Field Details
-
terms
-
composedPredicate
-
-
Constructor Details
-
CompositeLootItemCondition
protected CompositeLootItemCondition(LootItemCondition[] p_286437_, Predicate<LootContext> p_286771_)
-
-
Method Details
-
test
- Specified by:
test
in interfacePredicate<LootContext>
-
validate
- Specified by:
validate
in interfaceLootContextUser
-