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(net.kyori.adventure.text.ComponentLike line) Adds a component to the lore.Adds components to the lore.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 net.kyori.adventure.text.ComponentLike> lines) Sets the components of this lore.- Parameters:
lines- components- Returns:
- the builder for chaining
- See Also:
-
addLine
@Contract(value="_ -> this", mutates="this") ItemLore.Builder addLine(net.kyori.adventure.text.ComponentLike line) 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 net.kyori.adventure.text.ComponentLike> lines) Adds components to the lore.- Parameters:
lines- components- Returns:
- the builder for chaining
- See Also:
-