Class AlternativeLootItemCondition
java.lang.Object
net.minecraft.world.level.storage.loot.predicates.AlternativeLootItemCondition
- All Implemented Interfaces:
Predicate<LootContext>
,LootContextUser
,LootItemCondition
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate Predicate<LootContext>
(package private) LootItemCondition[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionalternative(LootItemCondition.Builder... p_81482_)
getType()
boolean
test(LootContext p_81476_)
void
validate(ValidationContext p_81478_)
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
-
Field Details
-
terms
-
composedPredicate
-
-
Constructor Details
-
AlternativeLootItemCondition
AlternativeLootItemCondition(LootItemCondition[] p_81471_)
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceLootItemCondition
-
test
- Specified by:
test
in interfacePredicate<LootContext>
-
validate
- Specified by:
validate
in interfaceLootContextUser
-
alternative
public static AlternativeLootItemCondition.Builder alternative(LootItemCondition.Builder... p_81482_)
-