Interface ItemContainerContents.Builder
- All Superinterfaces:
DataComponentBuilder<ItemContainerContents>
- Enclosing interface:
ItemContainerContents
@Experimental
@NonExtendable
public static interface ItemContainerContents.Builder
extends DataComponentBuilder<ItemContainerContents>
-
Method Summary
Modifier and TypeMethodDescriptionAdds an item stack to the container.Adds item stacks to the container.Methods inherited from interface io.papermc.paper.datacomponent.DataComponentBuilder
build
-
Method Details
-
add
Adds an item stack to the container.- Parameters:
stack
- the item stack- Returns:
- the builder for chaining
- See Also:
-
addAll
@Contract(value="_ -> this", mutates="this") ItemContainerContents.Builder addAll(List<ItemStack> stacks) Adds item stacks to the container.- Parameters:
stacks
- the item stacks- Returns:
- the builder for chaining
- See Also:
-