-
Notifications
You must be signed in to change notification settings - Fork 0
DisplayBar
In between class for Minecraft's built in bossbar and timers
Minecraft BossBar
Display name of bar
If the name should be included in bar title
If time remaining should be in bar title
Create a new DisplayBar with name, color and style. Shows both name and time in title
-
Parameters:
-
name— Display name -
color— Bar display color -
style— Bar display style
-
Create a new DisplayBar with name, color and style. Shows both name and time in title
-
Parameters:
-
name— Display name -
color— Bar display color -
style— Bar display style -
showName— Show name in title -
showTime— Show time remaining in title
-
Update time remaining text and bar progress
-
Parameters:
-
time— Time remaining formated string -
progress— Bar progress from 0 to 1
-
Set the display name of the bar
-
Parameters:
name— Display name
Set the display color of the bar
-
Parameters:
color— Display color
Set the display style of the bar
-
Parameters:
style— Display style
Set bar visibility
-
Parameters:
visible— If the bar should be visible
Hide the bar from a player
-
Parameters:
p— Player to hide the bar from
Show the bar to a player
-
Parameters:
p— Player to show the bar to
Get all of the players who can see this bar
- Returns: List of all players who can see the bar
Hide this bar (Does to remove players)
Sets the display name to be included in the title
Sets whether the display name should be included in the title
-
Parameters:
showName— If the display name should be included in the title
Sets the display name to not be show in title
Sets the time remaining to be show in the title
Sets whether the time remaining to be show in the title
-
Parameters:
showTime— If the time remaining should be in the title
Sets the time remaining to not be shown in the title