Interface ItemAdventurePredicate


@NullMarked @Experimental @NonExtendable public interface ItemAdventurePredicate
Controls which blocks a player in Adventure mode can do a certain action with this item.
See Also:
  • Method Details

    • itemAdventurePredicate

      @Contract(value="_ -> new", pure=true) static ItemAdventurePredicate itemAdventurePredicate(List<BlockPredicate> predicates)
    • itemAdventurePredicate

      @Contract(value="-> new", pure=true) static ItemAdventurePredicate.Builder itemAdventurePredicate()
    • predicates

      @Contract(pure=true) @Unmodifiable List<BlockPredicate> predicates()
      List of block predicates that control if the action is allowed.
      Returns:
      predicates