BBCDTemplate Object - Kirastur/BossbarCountdown GitHub Wiki
A bbcdTemplyte stores all information how to create a new bbcdBossbar (e.g. layout, initial progress , speed etc.).
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.
public String getName()
Get the name of the Template. The name must be unique.
public BarColor getColor()
Get the color of the Bossbar.
public BarStyle getStyle()
Get the style of the Bossbar.
public Set<BarFlag> getFlags()
Get the flags of the bossbar. If no flags are defined, an empty set is returned.
public String getTitle()
Get the initial title of the Bossbar. The title can lateron changed in the BBCDBossBar-Object.
public double getLeft()
Get the value for the left border.
public double getRight()
Get the value for the right border.
public double getStart()
Get the initial value for the progress.
public double getSpeed()
Get the initial value for the countdown-speed. The speed can lateron changed in the BBCDBossBar-Object.
public double getEnd()
Get the end-value. When the end value is reached, the final actions are executed.
public boolean isAutostart()
Get the Autostart. If true, the countdown automatically starts on creation.
public boolean isShow()
Get the Show. If true, the Bossbar is visible on creation.
public String getCommand()
Get the command which should be executed when the goal (the end-value) is reached.