Package wbs.utils.util
Class WbsScoreboard
java.lang.Object
wbs.utils.util.WbsScoreboard
Wrapper for
Scoreboards, to provide utilities for display and management and abstract the need for
Team and Objective management.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a line to the bottom of the scoreboardvoidclear()getTitle()booleanisBeingViewedBy(org.bukkit.entity.Player player) voidSet the line at index i to the given String.voidbooleanshowToPlayer(org.bukkit.entity.Player player) Show this scoreboard to the given player.intsize()
-
Constructor Details
-
WbsScoreboard
-
-
Method Details
-
getNamespace
-
getTitle
-
setTitle
-
setLine
Set the line at index i to the given String.- Parameters:
i- The line number to set atline- The String to show at the line number- Throws:
IndexOutOfBoundsException- If the index is below 0, or if the index is greater thansize()
-
addLine
Add a line to the bottom of the scoreboard- Parameters:
line- The text to show on the board
-
size
public int size() -
clear
public void clear() -
showToPlayer
public boolean showToPlayer(org.bukkit.entity.Player player) Show this scoreboard to the given player.- Parameters:
player- The player to show the scoreboard to- Returns:
- True if the player's scoreboard changed.
-
isBeingViewedBy
public boolean isBeingViewedBy(org.bukkit.entity.Player player)
-