Interface Facet.BossBarPacket<V>
-
- Type Parameters:
V
- a viewer type
- All Superinterfaces:
java.lang.AutoCloseable
,BossBar.Listener
,java.io.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 int
ACTION_ADD
static int
ACTION_FLAG
static int
ACTION_HEALTH
static int
ACTION_REMOVE
static int
ACTION_STYLE
static int
ACTION_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 int
createColor(@NotNull BossBar.Color color)
Creates a color.default byte
createFlag(byte flagBit, @NotNull java.util.Set<BossBar.Flag> flagsAdded, @NotNull java.util.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 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 BossBar.Color color)
Creates a color.- Parameters:
color
- a color- Returns:
- an ordinal
- Since:
- 4.0.0
-
createOverlay
default int createOverlay(@NotNull 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 java.util.Set<BossBar.Flag> flagsAdded, @NotNull @NotNull java.util.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
-
-