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 classAlternativeLootCondition.Builderstatic classAlternativeLootCondition.Serializer -
Field Summary
Fields Modifier and Type Field Description private Predicate<LootContext>predicateprivate LootCondition[]terms -
Constructor Summary
Constructors Modifier Constructor Description privateAlternativeLootCondition(LootCondition[] terms) -
Method Summary
Modifier and Type Method Description static AlternativeLootCondition.Builderbuilder(LootCondition.Builder[] terms)LootConditionTypegetType()booleantest(LootContext lootContext)voidvalidate(LootTableReporter reporter)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.loot.context.LootContextAware
getRequiredParameters
-
Field Details
-
terms
-
predicate
-
-
Constructor Details
-
AlternativeLootCondition
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceLootCondition
-
test
- Specified by:
testin interfacePredicate<LootContext>
-
validate
- Specified by:
validatein interfaceLootContextAware
-
builder
-