Interface ItemLore.Builder
- All Superinterfaces:
DataComponentBuilder<ItemLore>
- Enclosing interface:
ItemLore
@Experimental
@NonExtendable
public static interface ItemLore.Builder
extends DataComponentBuilder<ItemLore>
Builder for
ItemLore
.-
Method Summary
Modifier and TypeMethodDescriptionaddLine
(ComponentLike line) Adds a component to the lore.addLines
(List<? extends ComponentLike> lines) Adds components to the lore.lines
(List<? extends ComponentLike> lines) Sets the components of this lore.Methods inherited from interface io.papermc.paper.datacomponent.DataComponentBuilder
build
-
Method Details
-
lines
@Contract(value="_ -> this", mutates="this") ItemLore.Builder lines(List<? extends ComponentLike> lines) Sets the components of this lore.- Parameters:
lines
- components- Returns:
- the builder for chaining
- See Also:
-
addLine
Adds a component to the lore.- Parameters:
line
- component- Returns:
- the builder for chaining
- See Also:
-
addLines
@Contract(value="_ -> this", mutates="this") ItemLore.Builder addLines(List<? extends ComponentLike> lines) Adds components to the lore.- Parameters:
lines
- components- Returns:
- the builder for chaining
- See Also:
-