Package net.minecraft.loot.conditions
Class Alternative
java.lang.Object
net.minecraft.loot.conditions.Alternative
- All Implemented Interfaces:
Predicate<LootContext>
,ILootCondition
,IParameterized
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface net.minecraft.loot.conditions.ILootCondition
ILootCondition.IBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Predicate<LootContext>
private final ILootCondition[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Alternative.Builder
alternative
(ILootCondition.IBuilder... p_215960_0_) getType()
final boolean
test
(LootContext p_test_1_) void
validate
(ValidationTracker p_225580_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.loot.IParameterized
getReferencedContextParams
-
Field Details
-
terms
-
composedPredicate
-
-
Constructor Details
-
Alternative
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceILootCondition
-
test
- Specified by:
test
in interfacePredicate<LootContext>
-
validate
- Specified by:
validate
in interfaceIParameterized
-
alternative
-