Package net.kyori.adventure.text
Interface ObjectComponent.Builder
- All Superinterfaces:
AbstractBuilder<ObjectComponent>,Buildable.Builder<ObjectComponent>,ComponentBuilder<ObjectComponent,,ObjectComponent.Builder> ComponentBuilderApplicable,ComponentLike,MutableStyleSetter<ObjectComponent.Builder>,StyleSetter<ObjectComponent.Builder>
- Enclosing interface:
- ObjectComponent
public static interface ObjectComponent.Builder
extends ComponentBuilder<ObjectComponent,ObjectComponent.Builder>
An object component builder.
- Since:
- 4.25.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull ObjectComponent.BuilderSets the atlas key.@NotNull ObjectComponent.BuilderSets the sprite key.Methods inherited from interface net.kyori.adventure.text.ComponentBuilder
append, append, append, append, append, append, appendNewline, appendSpace, applicableApply, apply, applyDeep, asComponent, build, children, clickEvent, color, colorIfAbsent, componentBuilderApply, decorate, decorate, decoration, decoration, decorationIfAbsent, decorations, decorations, font, hoverEvent, insertion, mapChildren, mapChildrenDeep, mergeStyle, mergeStyle, mergeStyle, resetStyle, style, styleMethods inherited from interface net.kyori.adventure.text.format.StyleSetter
shadowColor, shadowColorIfAbsent
-
Method Details
-
atlas
Sets the atlas key.- Parameters:
atlas- the atlas key- Returns:
- this builder
- Since:
- 4.25.0
-
sprite
Sets the sprite key.- Parameters:
sprite- the sprite key- Returns:
- this builder
- Since:
- 4.25.0
-