Interface ItemAdventurePredicate


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

    • itemAdventurePredicate

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

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

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