CommandAPI 8.8.0
An API for the command UI introduced in Minecraft 1.13
|
A representation of scoreboard display slots, as well as team colors for the sidebar. More...
Public Member Functions | |
ScoreboardSlot (int i) | |
Determines the scoreboard slot value based on an internal Minecraft integer. More... | |
DisplaySlot | getDisplaySlot () |
Gets the display slot of this scoreboard slot. More... | |
ChatColor | getTeamColor () |
Gets the team color of this scoreboard slot. More... | |
boolean | hasTeamColor () |
Returns whether this scoreboard slot has a team color. More... | |
String | toString () |
Returns the Minecraft string representation of this scoreboard slot. More... | |
Static Public Member Functions | |
static ScoreboardSlot | of (DisplaySlot slot) |
Constructs a ScoreboardSlot from a DisplaySlot. More... | |
static ScoreboardSlot | ofTeamColor (ChatColor color) |
Constructs a ScoreboardSlot from a ChatColor. More... | |
A representation of scoreboard display slots, as well as team colors for the sidebar.
dev.jorel.commandapi.wrappers.ScoreboardSlot.ScoreboardSlot | ( | int | i | ) |
Determines the scoreboard slot value based on an internal Minecraft integer.
i | the scoreboard slot value |
DisplaySlot dev.jorel.commandapi.wrappers.ScoreboardSlot.getDisplaySlot | ( | ) |
Gets the display slot of this scoreboard slot.
ChatColor dev.jorel.commandapi.wrappers.ScoreboardSlot.getTeamColor | ( | ) |
Gets the team color of this scoreboard slot.
boolean dev.jorel.commandapi.wrappers.ScoreboardSlot.hasTeamColor | ( | ) |
Returns whether this scoreboard slot has a team color.
|
static |
Constructs a ScoreboardSlot from a DisplaySlot.
slot | the display slot to convert into a ScoreboardSlot |
|
static |
Constructs a ScoreboardSlot from a ChatColor.
color | the chat color to convert into a ScoreboardSlot |
String dev.jorel.commandapi.wrappers.ScoreboardSlot.toString | ( | ) |
Returns the Minecraft string representation of this scoreboard slot.