Class TexturedBossBar.Builder
java.lang.Object
net.ixdarklord.coolcatcanvas.api.client.bossbar.TexturedBossBar.Builder
- Enclosing class:
TexturedBossBar
-
Method Summary
Modifier and TypeMethodDescriptionat(int x, int y) Where the pulse is centred, within the frame.build()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.frame(int u, int v, int width, int height) The frame: its place in the texture and its size.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.nameColor(int argb) The colour of the name above it (ARGB).onHit(boolean jolt, boolean flash) Whether a hit jolts the bar sideways, and flashes its fill.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.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.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.
-
Method Details
-
frame
The frame: its place in the texture and its size. It is drawn centred across the screen. -
track
The inside of the frame's track, where the fill goes: its place within the frame and its size. -
fill
Where in the texture the fill is, as big as the track; it is drawn as far as the bar is full. -
trail
Where in the texture the trail is, as big as the track: what was just lost, draining after a hit. -
mark
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
A glow in the texture that pulses over the frame, like a heartbeat, faster as the bar empties. -
at
Where the pulse is centred, within the frame. -
nameColor
The colour of the name above it (ARGB). -
onHit
Whether a hit jolts the bar sideways, and flashes its fill. Both on by default. -
build
-