Class TexturedBossBar.Builder

java.lang.Object
net.ixdarklord.coolcatcanvas.api.client.bossbar.TexturedBossBar.Builder
Enclosing class:
TexturedBossBar

public static final class TexturedBossBar.Builder extends Object
  • Method Details

    • frame

      public TexturedBossBar.Builder frame(int u, int v, int width, int height)
      The frame: its place in the texture and its size. It is drawn centred across the screen.
    • track

      public TexturedBossBar.Builder track(int x, int y, int width, int height)
      The inside of the frame's track, where the fill goes: its place within the frame and its size.
    • fill

      public TexturedBossBar.Builder fill(int u, int v)
      Where in the texture the fill is, as big as the track; it is drawn as far as the bar is full.
    • trail

      public TexturedBossBar.Builder trail(int u, int v)
      Where in the texture the trail is, as big as the track: what was just lost, draining after a hit.
    • mark

      public TexturedBossBar.Builder mark(float at, int u, int v, int width, int height, int offsetY)
      A mark drawn over the track at a share of it (0 to 1), once the bar has fallen to it: a phase reached.
      Parameters:
      offsetY - how far below the track's top edge it is drawn (negative above it)
    • pulse

      public TexturedBossBar.Builder pulse(int u, int v, int width, int height)
      A glow in the texture that pulses over the frame, like a heartbeat, faster as the bar empties.
    • at

      public TexturedBossBar.Builder at(int x, int y)
      Where the pulse is centred, within the frame.
    • nameColor

      public TexturedBossBar.Builder nameColor(int argb)
      The colour of the name above it (ARGB).
    • onHit

      public TexturedBossBar.Builder onHit(boolean jolt, boolean flash)
      Whether a hit jolts the bar sideways, and flashes its fill. Both on by default.
    • build

      public TexturedBossBar build()