Interface ItemLore.Builder
- All Superinterfaces:
DataComponentBuilder<ItemLore>
- Enclosing interface:
ItemLore
Builder for
ItemLore.- Since:
- 1.21.3
-
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 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
- Since:
- 1.21.3
- 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
- Since:
- 1.21.3
- 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
- Since:
- 1.21.3
- See Also:
-