BBCDTemplate Object - Kirastur/BossbarCountdown GitHub Wiki

A bbcdTemplyte stores all information how to create a new bbcdBossbar (e.g. layout, initial progress , speed etc.).

BBCDTemplate

public BBCDTemplate(String name, Map<String,String> parameters) throws BBCDException

Normally a BBCDTemplate is defined in the config file. But you are also able to create a template on the fly. The name/value pairs defining the template properties are given as Java Map-object. The posssible attributes are described in the Templates configuration section.

getName

public String getName()

Get the name of the Template. The name must be unique.

getColor

public BarColor getColor()

Get the color of the Bossbar.

getStyle

public BarStyle getStyle()

Get the style of the Bossbar.

getFlags

public Set<BarFlag> getFlags()

Get the flags of the bossbar. If no flags are defined, an empty set is returned.

getTitle

public String getTitle()

Get the initial title of the Bossbar. The title can lateron changed in the BBCDBossBar-Object.

getLeft

public double getLeft()

Get the value for the left border.

getRight

public double getRight()

Get the value for the right border.

getStart

public double getStart()

Get the initial value for the progress.

getSpeed

public double getSpeed()

Get the initial value for the countdown-speed. The speed can lateron changed in the BBCDBossBar-Object.

getEnd

public double getEnd()

Get the end-value. When the end value is reached, the final actions are executed.

isAutostart

public boolean isAutostart()

Get the Autostart. If true, the countdown automatically starts on creation.

isShow

public boolean isShow()

Get the Show. If true, the Bossbar is visible on creation.

getCommand

public String getCommand()

Get the command which should be executed when the goal (the end-value) is reached.

⚠️ **GitHub.com Fallback** ⚠️