Interface ItemAdventurePredicate
- All Superinterfaces:
ShownInTooltip<ItemAdventurePredicate>
@NullMarked
@Experimental
@NonExtendable
public interface ItemAdventurePredicate
extends ShownInTooltip<ItemAdventurePredicate>
Controls which blocks a player in Adventure mode can do a certain action with this item.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ItemAdventurePredicate
itemAdventurePredicate
(List<BlockPredicate> predicates) List of block predicates that control if the action is allowed.Methods inherited from interface io.papermc.paper.datacomponent.item.ShownInTooltip
showInTooltip, showInTooltip
-
Method Details
-
itemAdventurePredicate
@Contract(value="_ -> new", pure=true) static ItemAdventurePredicate itemAdventurePredicate(List<BlockPredicate> predicates) -
itemAdventurePredicate
-
predicates
List of block predicates that control if the action is allowed.- Returns:
- predicates
-