Interface ItemAdventurePredicate.Builder
- All Superinterfaces:
DataComponentBuilder<ItemAdventurePredicate>
,ShownInTooltip.Builder<ItemAdventurePredicate.Builder>
- Enclosing interface:
ItemAdventurePredicate
@Experimental
@NonExtendable
public static interface ItemAdventurePredicate.Builder
extends ShownInTooltip.Builder<ItemAdventurePredicate.Builder>, DataComponentBuilder<ItemAdventurePredicate>
Builder for
ItemAdventurePredicate
.-
Method Summary
Modifier and TypeMethodDescriptionaddPredicate
(BlockPredicate predicate) Adds a block predicate to this builder.addPredicates
(List<BlockPredicate> predicates) Adds block predicates to this builder.Methods inherited from interface io.papermc.paper.datacomponent.DataComponentBuilder
build
Methods inherited from interface io.papermc.paper.datacomponent.item.ShownInTooltip.Builder
showInTooltip
-
Method Details
-
addPredicate
@Contract(value="_ -> this", mutates="this") ItemAdventurePredicate.Builder addPredicate(BlockPredicate predicate) Adds a block predicate to this builder.- Parameters:
predicate
- predicate- Returns:
- the builder for chaining
- See Also:
-
addPredicates
@Contract(value="_ -> this", mutates="this") ItemAdventurePredicate.Builder addPredicates(List<BlockPredicate> predicates) Adds block predicates to this builder.- Parameters:
predicates
- predicates- Returns:
- the builder for chaining
- See Also:
-