Interface Facet.BossBarPacket<V>
-
- Type Parameters:
V- a viewer type
- All Superinterfaces:
AutoCloseable,net.kyori.adventure.bossbar.BossBar.Listener,Closeable,Facet.BossBar<V>
public static interface Facet.BossBarPacket<V> extends 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
Fields Modifier and Type Field Description static intACTION_ADDstatic intACTION_FLAGstatic intACTION_HEALTHstatic intACTION_REMOVEstatic intACTION_STYLEstatic intACTION_TITLE-
Fields inherited from interface net.kyori.adventure.platform.facet.Facet.BossBar
PROTOCOL_BOSS_BAR
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default intcreateColor(@NotNull net.kyori.adventure.bossbar.BossBar.Color color)Creates a color.default bytecreateFlag(byte flagBit, @NotNull Set<net.kyori.adventure.bossbar.BossBar.Flag> flagsAdded, @NotNull Set<net.kyori.adventure.bossbar.BossBar.Flag> flagsRemoved)Creates a bit flag.default intcreateOverlay(@NotNull net.kyori.adventure.bossbar.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 Detail
-
ACTION_ADD
static final int ACTION_ADD
- See Also:
- Constant Field Values
-
ACTION_REMOVE
static final int ACTION_REMOVE
- See Also:
- Constant Field Values
-
ACTION_HEALTH
static final int ACTION_HEALTH
- See Also:
- Constant Field Values
-
ACTION_TITLE
static final int ACTION_TITLE
- See Also:
- Constant Field Values
-
ACTION_STYLE
static final int ACTION_STYLE
- See Also:
- Constant Field Values
-
ACTION_FLAG
static final int ACTION_FLAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
createColor
default int createColor(@NotNull net.kyori.adventure.bossbar.BossBar.Color color)
Creates a color.- Parameters:
color- a color- Returns:
- an ordinal
- Since:
- 4.0.0
-
createOverlay
default int createOverlay(@NotNull net.kyori.adventure.bossbar.BossBar.Overlay overlay)
Creates an overlay.- Parameters:
overlay- an overlay- Returns:
- an ordinal
- Since:
- 4.0.0
-
createFlag
default byte createFlag(byte flagBit, @NotNull @NotNull Set<net.kyori.adventure.bossbar.BossBar.Flag> flagsAdded, @NotNull @NotNull Set<net.kyori.adventure.bossbar.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
-
-