Class BossBarUtils

java.lang.Object
nl.mtvehicles.core.infrastructure.utils.BossBarUtils

public class BossBarUtils extends Object
Methods for BossBars
  • Field Details

    • Fuelbar

      public static HashMap<String,​org.bukkit.boss.BossBar> Fuelbar
      Fuel bossbar
  • Constructor Details

    • BossBarUtils

      public BossBarUtils()
  • Method Details

    • setBossBarValue

      public static void setBossBarValue(double counter, String licensePlate)
      Set bossbar's fuel amount
      Parameters:
      counter - Fuel amount
      licensePlate - Vehicle's license plate (this vehicle's fuel is displayed)
    • removeBossBar

      public static void removeBossBar(org.bukkit.entity.Player player, String licensePlate)
      Remove fuel bossbar from player
      Parameters:
      player - Player
      licensePlate - Vehicle's license plate (this vehicle's fuel is displayed)
    • addBossBar

      public static void addBossBar(org.bukkit.entity.Player player, String licensePlate)
      Show fuel bossbar for a player
      Parameters:
      player - Player
      licensePlate - Vehicle's license plate (this vehicle's fuel is displayed)