java.lang.Object
top.offsetmonkey538.loottablemodifier.common.api.resource.predicate.op.TermsPredicate.Builder
top.offsetmonkey538.loottablemodifier.common.api.resource.predicate.op.AnyOfPredicate.Builder
All Implemented Interfaces:
LootModifierPredicate.Builder
Enclosing class:
AnyOfPredicate

public static class AnyOfPredicate.Builder extends top.offsetmonkey538.loottablemodifier.common.api.resource.predicate.op.TermsPredicate.Builder
Builder for AnyOfPredicate
  • Method Details

    • or

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

      protected AnyOfPredicate 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