Package net.minecraft.loot.condition
Class AlternativeLootCondition
java.lang.Object
net.minecraft.loot.condition.AlternativeLootCondition
- All Implemented Interfaces:
Predicate<LootContext>
,LootCondition
,LootContextAware
public class AlternativeLootCondition extends Object implements LootCondition
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AlternativeLootCondition.Builder
static class
AlternativeLootCondition.Serializer
-
Field Summary
Fields Modifier and Type Field Description private Predicate<LootContext>
predicate
private LootCondition[]
terms
-
Constructor Summary
Constructors Modifier Constructor Description private
AlternativeLootCondition(LootCondition[] terms)
-
Method Summary
Modifier and Type Method Description static AlternativeLootCondition.Builder
builder(LootCondition.Builder[] terms)
LootConditionType
getType()
boolean
test(LootContext lootContext)
void
validate(LootTableReporter reporter)
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.context.LootContextAware
getRequiredParameters
-
Field Details
-
terms
-
predicate
-
-
Constructor Details
-
AlternativeLootCondition
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceLootCondition
-
test
- Specified by:
test
in interfacePredicate<LootContext>
-
validate
- Specified by:
validate
in interfaceLootContextAware
-
builder
-