Class BossBarUtils
java.lang.Object
nl.mtvehicles.core.infrastructure.utils.BossBarUtils
Methods for BossBars
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addBossBar(org.bukkit.entity.Player player, String licensePlate)
Show fuel bossbar for a playerstatic void
removeBossBar(org.bukkit.entity.Player player, String licensePlate)
Remove fuel bossbar from playerstatic void
setBossBarValue(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)
-