Class AllOfPredicate.Builder
java.lang.Object
top.offsetmonkey538.loottablemodifier.common.api.resource.predicate.op.TermsPredicate.Builder
top.offsetmonkey538.loottablemodifier.common.api.resource.predicate.op.AllOfPredicate.Builder
- All Implemented Interfaces:
LootModifierPredicate.Builder
- Enclosing class:
- AllOfPredicate
public static class AllOfPredicate.Builder
extends top.offsetmonkey538.loottablemodifier.common.api.resource.predicate.op.TermsPredicate.Builder
Builder for
AllOfPredicate-
Method Summary
Modifier and TypeMethodDescriptionand(@NotNull LootModifierPredicate.Builder builder) Adds another predicate builder in anANDrelationship.protected AllOfPredicatebuild(List<LootModifierPredicate> terms) Builds the predicate using the provided terms.Methods inherited from class top.offsetmonkey538.loottablemodifier.common.api.resource.predicate.op.TermsPredicate.Builder
add, buildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface top.offsetmonkey538.loottablemodifier.common.api.resource.predicate.LootModifierPredicate.Builder
invert, or
-
Method Details
-
and
@Contract("_->this") public AllOfPredicate.Builder and(@NotNull LootModifierPredicate.Builder builder) Description copied from interface:LootModifierPredicate.BuilderAdds another predicate builder in anANDrelationship.
Wraps this and the provided builder in anAllOfPredicate- Parameters:
builder- The other predicate- Returns:
- A builder matching when this builder and the provided other builder match.
-
build
Description copied from class:top.offsetmonkey538.loottablemodifier.common.api.resource.predicate.op.TermsPredicate.BuilderBuilds the predicate using the provided terms.- Specified by:
buildin classtop.offsetmonkey538.loottablemodifier.common.api.resource.predicate.op.TermsPredicate.Builder- Parameters:
terms- the terms to build the predicate with- Returns:
- a built predicate
-