Class AbstractSidebar
java.lang.Object
net.megavex.scoreboardlibrary.implementation.sidebar.AbstractSidebar
- All Implemented Interfaces:
net.megavex.scoreboardlibrary.api.sidebar.Sidebar,PlayerDisplayable
- Direct Known Subclasses:
PlayerDependantLocaleSidebar,SingleLocaleSidebar
public abstract class AbstractSidebar
extends Object
implements net.megavex.scoreboardlibrary.api.sidebar.Sidebar, PlayerDisplayable
-
Field Summary
Fields inherited from interface net.megavex.scoreboardlibrary.api.sidebar.Sidebar
MAX_LINES -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSidebar(@NotNull ScoreboardLibraryImpl scoreboardLibrary, int maxLines) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanaddPlayer(@NotNull org.bukkit.entity.Player player) protected abstract @Nullable LocaleLineHandleraddPlayer0(@NotNull org.bukkit.entity.Player player) final voidclose()final booleanclosed()final voiddisplay(@NotNull org.bukkit.entity.Player player) protected abstract voidforEachLineHandler(@NotNull Consumer<LocaleLineHandler> consumer) protected abstract @NotNull Set<org.bukkit.entity.Player> final @Nullable net.kyori.adventure.text.Componentline(@org.jetbrains.annotations.Range(from=0L, to=14L) int line) final voidline(@org.jetbrains.annotations.Range(from=0L, to=14L) int index, @Nullable net.kyori.adventure.text.ComponentLike value, @Nullable net.megavex.scoreboardlibrary.api.objective.ScoreFormat scoreFormat) final @Nullable GlobalLineInfo[]lines()final @org.jetbrains.annotations.Range(from=1L, to=15L) intmaxLines()final net.megavex.scoreboardlibrary.implementation.packetAdapter.objective.ObjectivePacketAdapterfinal @NotNull Collection<org.bukkit.entity.Player> players()final booleanremovePlayer(@NotNull org.bukkit.entity.Player player) protected abstract @Nullable LocaleLineHandlerremovePlayer0(@NotNull org.bukkit.entity.Player player) final @NotNull ScoreboardLibraryImplfinal @NotNull Queue<SidebarTask> final booleantick()final @NotNull net.kyori.adventure.text.Componenttitle()final voidtitle(@NotNull net.kyori.adventure.text.ComponentLike title) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.megavex.scoreboardlibrary.api.sidebar.Sidebar
addPlayers, clearLines, line, locale, removePlayers
-
Constructor Details
-
AbstractSidebar
-
-
Method Details
-
internalPlayers
-
forEachLineHandler
-
addPlayer0
@Nullable protected abstract @Nullable LocaleLineHandler addPlayer0(@NotNull @NotNull org.bukkit.entity.Player player) -
removePlayer0
@Nullable protected abstract @Nullable LocaleLineHandler removePlayer0(@NotNull @NotNull org.bukkit.entity.Player player) -
close
public final void close()- Specified by:
closein interfacenet.megavex.scoreboardlibrary.api.sidebar.Sidebar
-
closed
public final boolean closed()- Specified by:
closedin interfacenet.megavex.scoreboardlibrary.api.sidebar.Sidebar
-
players
- Specified by:
playersin interfacenet.megavex.scoreboardlibrary.api.sidebar.Sidebar
-
addPlayer
public final boolean addPlayer(@NotNull @NotNull org.bukkit.entity.Player player) - Specified by:
addPlayerin interfacenet.megavex.scoreboardlibrary.api.sidebar.Sidebar
-
removePlayer
public final boolean removePlayer(@NotNull @NotNull org.bukkit.entity.Player player) - Specified by:
removePlayerin interfacenet.megavex.scoreboardlibrary.api.sidebar.Sidebar
-
maxLines
public final @org.jetbrains.annotations.Range(from=1L, to=15L) int maxLines()- Specified by:
maxLinesin interfacenet.megavex.scoreboardlibrary.api.sidebar.Sidebar
-
line
public final void line(@org.jetbrains.annotations.Range(from=0L, to=14L) int index, @Nullable @Nullable net.kyori.adventure.text.ComponentLike value, @Nullable @Nullable net.megavex.scoreboardlibrary.api.objective.ScoreFormat scoreFormat) - Specified by:
linein interfacenet.megavex.scoreboardlibrary.api.sidebar.Sidebar
-
line
@Nullable public final @Nullable net.kyori.adventure.text.Component line(@org.jetbrains.annotations.Range(from=0L, to=14L) int line) - Specified by:
linein interfacenet.megavex.scoreboardlibrary.api.sidebar.Sidebar
-
title
@NotNull public final @NotNull net.kyori.adventure.text.Component title()- Specified by:
titlein interfacenet.megavex.scoreboardlibrary.api.sidebar.Sidebar
-
title
public final void title(@NotNull @NotNull net.kyori.adventure.text.ComponentLike title) - Specified by:
titlein interfacenet.megavex.scoreboardlibrary.api.sidebar.Sidebar
-
scoreboardLibrary
-
packetAdapter
public final net.megavex.scoreboardlibrary.implementation.packetAdapter.objective.ObjectivePacketAdapter packetAdapter() -
lines
-
taskQueue
-
display
public final void display(@NotNull @NotNull org.bukkit.entity.Player player) - Specified by:
displayin interfacePlayerDisplayable
-
tick
public final boolean tick()
-