Class SidebarComponent.Builder
java.lang.Object
net.megavex.scoreboardlibrary.api.sidebar.component.SidebarComponent.Builder
- Enclosing interface:
SidebarComponent
-
Method Summary
Modifier and TypeMethodDescription<T extends SidebarComponent>
@NotNull SidebarComponent.BuilderaddAnimatedComponent(@NotNull SidebarAnimation<T> animation) <T extends net.kyori.adventure.text.ComponentLike>
@NotNull SidebarComponent.BuilderaddAnimatedLine(@NotNull SidebarAnimation<T> animation) @NotNull SidebarComponent.Builder@NotNull SidebarComponent.BuilderaddComponent(@NotNull SidebarComponent component) <T extends net.kyori.adventure.text.ComponentLike>
@NotNull SidebarComponent.BuilderaddDynamicLine(@NotNull Supplier<T> lineSupplier) @NotNull SidebarComponent.BuilderaddStaticLine(@NotNull net.kyori.adventure.text.ComponentLike line) @NotNull SidebarComponent.BuilderaddStaticLine(@NotNull net.kyori.adventure.text.ComponentLike line, @NotNull ScoreFormat scoreFormat) @NotNull SidebarComponentbuild()
-
Method Details
-
addComponent
@NotNull public @NotNull SidebarComponent.Builder addComponent(@NotNull @NotNull SidebarComponent component) -
addStaticLine
@NotNull public @NotNull SidebarComponent.Builder addStaticLine(@NotNull @NotNull net.kyori.adventure.text.ComponentLike line) -
addStaticLine
@NotNull public @NotNull SidebarComponent.Builder addStaticLine(@NotNull @NotNull net.kyori.adventure.text.ComponentLike line, @NotNull @NotNull ScoreFormat scoreFormat) -
addBlankLine
-
addDynamicLine
@NotNull public <T extends net.kyori.adventure.text.ComponentLike> @NotNull SidebarComponent.Builder addDynamicLine(@NotNull @NotNull Supplier<T> lineSupplier) -
addAnimatedLine
@NotNull public <T extends net.kyori.adventure.text.ComponentLike> @NotNull SidebarComponent.Builder addAnimatedLine(@NotNull @NotNull SidebarAnimation<T> animation) -
addAnimatedComponent
@NotNull public <T extends SidebarComponent> @NotNull SidebarComponent.Builder addAnimatedComponent(@NotNull @NotNull SidebarAnimation<T> animation) -
build
-