Interface CustomModelDataPredicate.StringPredicate

All Superinterfaces:
MinecraftPredicate<ItemPredicateContext>, Predicate<ItemPredicateContext>
Enclosing interface:
CustomModelDataPredicate

@GeyserProvided @NonExtendable public static interface CustomModelDataPredicate.StringPredicate extends MinecraftPredicate<ItemPredicateContext>
Since:
2.9.3
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    @org.checkerframework.checker.index.qual.NonNegative int
     
    boolean
     
    @Nullable String
     

    Methods inherited from interface org.geysermc.geyser.api.predicate.MinecraftPredicate

    and, negate, or

    Methods inherited from interface java.util.function.Predicate

    test
  • Method Details

    • string

      @Nullable String string()
      Returns:
      the string to compare against. Can be null to check for a missing string
      Since:
      2.9.3
    • index

      @org.checkerframework.checker.index.qual.NonNegative int index()
      Returns:
      the index of the string to match the string() against
      Since:
      2.9.3
    • negated

      boolean negated()
      Returns:
      whether this predicate is negated
      Since:
      2.9.3