Class BossBarUtils
java.lang.Object
nl.mtvehicles.core.infrastructure.utils.BossBarUtils
Methods for BossBars
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddBossBar(org.bukkit.entity.Player player, String licensePlate) Show fuel bossbar for a playerstatic voidremoveBossBar(org.bukkit.entity.Player player, String licensePlate) Remove fuel bossbar from playerstatic voidsetBossBarValue(double counter, String licensePlate) Set bossbar's fuel amount
-
Field Details
-
Fuelbar
Fuel bossbar
-
-
Constructor Details
-
BossBarUtils
public BossBarUtils()
-
-
Method Details
-
setBossBarValue
Set bossbar's fuel amount- Parameters:
counter- Fuel amountlicensePlate- Vehicle's license plate (this vehicle's fuel is displayed)
-
removeBossBar
Remove fuel bossbar from player- Parameters:
player- PlayerlicensePlate- Vehicle's license plate (this vehicle's fuel is displayed)
-
addBossBar
Show fuel bossbar for a player- Parameters:
player- PlayerlicensePlate- Vehicle's license plate (this vehicle's fuel is displayed)
-