Class AlternativeLootItemCondition
java.lang.Object
net.minecraft.world.level.storage.loot.predicates.AlternativeLootItemCondition
- All Implemented Interfaces:
Predicate<LootContext>,LootContextUser,LootItemCondition
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Predicate<LootContext>(package private) final LootItemCondition[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalternative(LootItemCondition.Builder... p_81482_) getType()final booleantest(LootContext p_81476_) voidvalidate(ValidationContext p_81478_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getTypein interfaceLootItemCondition
-
test
- Specified by:
testin interfacePredicate<LootContext>
-
validate
- Specified by:
validatein interfaceLootContextUser
-
alternative
public static AlternativeLootItemCondition.Builder alternative(LootItemCondition.Builder... p_81482_)
-