Interface Facet.BossBarPacket<V>
- Type Parameters:
V
- a viewer type
- All Superinterfaces:
AutoCloseable
,BossBar.Listener
,Closeable
,Facet.BossBar<V>
A facet that listens to boss bar changes, using packets.
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.platform.facet.Facet.BossBar
Facet.BossBar.Builder<V,
B extends Facet.BossBar<V>> -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from interface net.kyori.adventure.platform.facet.Facet.BossBar
PROTOCOL_BOSS_BAR
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
createColor
(@NotNull BossBar.Color color) Creates a color.default byte
createFlag
(byte flagBit, @NotNull Set<BossBar.Flag> flagsAdded, @NotNull Set<BossBar.Flag> flagsRemoved) Creates a bit flag.default int
createOverlay
(@NotNull BossBar.Overlay overlay) Creates an overlay.Methods inherited from interface net.kyori.adventure.bossbar.BossBar.Listener
bossBarColorChanged, bossBarFlagsChanged, bossBarNameChanged, bossBarOverlayChanged, bossBarPercentChanged, bossBarProgressChanged
Methods inherited from interface net.kyori.adventure.platform.facet.Facet.BossBar
addViewer, bossBarInitialized, close, isEmpty, removeViewer
-
Field Details
-
ACTION_ADD
static final int ACTION_ADD- See Also:
-
ACTION_REMOVE
static final int ACTION_REMOVE- See Also:
-
ACTION_HEALTH
static final int ACTION_HEALTH- See Also:
-
ACTION_TITLE
static final int ACTION_TITLE- See Also:
-
ACTION_STYLE
static final int ACTION_STYLE- See Also:
-
ACTION_FLAG
static final int ACTION_FLAG- See Also:
-
-
Method Details
-
createColor
Creates a color.- Parameters:
color
- a color- Returns:
- an ordinal
- Since:
- 4.0.0
-
createOverlay
Creates an overlay.- Parameters:
overlay
- an overlay- Returns:
- an ordinal
- Since:
- 4.0.0
-
createFlag
default byte createFlag(byte flagBit, @NotNull @NotNull Set<BossBar.Flag> flagsAdded, @NotNull @NotNull Set<BossBar.Flag> flagsRemoved) Creates a bit flag.- Parameters:
flagBit
- a flag bitflagsAdded
- a set of added flagsflagsRemoved
- a set of removed flags- Returns:
- an ordinal
- Since:
- 4.0.0
-