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 Details

    • and

      @Contract("_->this") public AllOfPredicate.Builder and(@NotNull LootModifierPredicate.Builder builder)
      Description copied from interface: LootModifierPredicate.Builder
      Adds another predicate builder in an AND relationship.
      Wraps this and the provided builder in an AllOfPredicate
      Parameters:
      builder - The other predicate
      Returns:
      A builder matching when this builder and the provided other builder match.
    • build

      protected AllOfPredicate build(List<LootModifierPredicate> terms)
      Description copied from class: top.offsetmonkey538.loottablemodifier.common.api.resource.predicate.op.TermsPredicate.Builder
      Builds the predicate using the provided terms.
      Specified by:
      build in class top.offsetmonkey538.loottablemodifier.common.api.resource.predicate.op.TermsPredicate.Builder
      Parameters:
      terms - the terms to build the predicate with
      Returns:
      a built predicate