All Superinterfaces:
Predicate<LootModifierContext>
All Known Implementing Classes:
AllOfPredicate, AnyOfPredicate, EntryItemPredicate, InvertedPredicate, TablePredicate

public interface LootModifierPredicate extends Predicate<LootModifierContext>
A loot modifier predicate
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A builder for loot modifier predicates.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<LootModifierPredicate>
    Codec containing the type id
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the type of this action.
    boolean
    test(@NotNull LootModifierContext context)
    Tests this predicate against the provided context.

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Field Details

    • CODEC

      static final com.mojang.serialization.Codec<LootModifierPredicate> CODEC
      Codec containing the type id
  • Method Details

    • getType

      Returns the type of this action.
      Returns:
      the type of this action.
    • test

      boolean test(@NotNull @NotNull LootModifierContext context)
      Tests this predicate against the provided context.
      Specified by:
      test in interface Predicate<LootModifierContext>
      Parameters:
      context - the context to match against
      Returns:
      if this predicate matched the provided context