Interface LootModifierPredicate.Builder
- All Known Implementing Classes:
AllOfPredicate.Builder,AnyOfPredicate.Builder,TablePredicate.Builder,top.offsetmonkey538.loottablemodifier.common.api.resource.predicate.op.TermsPredicate.Builder
- Enclosing interface:
- LootModifierPredicate
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A builder for loot modifier predicates.
-
Method Summary
Modifier and TypeMethodDescriptiondefault LootModifierPredicate.Builderand(LootModifierPredicate.Builder otherPredicate) Adds another predicate builder in anANDrelationship.build()Builds the predicatedefault LootModifierPredicate.Builderinvert()Inverts this builder.default LootModifierPredicate.Builderor(LootModifierPredicate.Builder otherPredicate) Adds another predicate builder in anORrelationship.
-
Method Details
-
build
LootModifierPredicate build()Builds the predicate- Returns:
- a built
LootModifierPredicate
-
invert
Inverts this builder.
Wraps this builder in anInvertedPredicate- Returns:
- An inverted version of this builder.
-
or
@Contract("_->new") default LootModifierPredicate.Builder or(@NotNull LootModifierPredicate.Builder otherPredicate) Adds another predicate builder in anORrelationship.
Wraps this and the provided builder in anAnyOfPredicate- Parameters:
otherPredicate- The other predicate- Returns:
- A builder matching when this builder or the provided other builder match.
-
and
@Contract("_->new") default LootModifierPredicate.Builder and(@NotNull LootModifierPredicate.Builder otherPredicate) Adds another predicate builder in anANDrelationship.
Wraps this and the provided builder in anAllOfPredicate- Parameters:
otherPredicate- The other predicate- Returns:
- A builder matching when this builder and the provided other builder match.
-