Interface Facet.BossBarEntity<V,P>
- Type Parameters:
V
- a viewer typeP
- a position type
- All Superinterfaces:
AutoCloseable
,BossBar.Listener
,Closeable
,Facet<V>
,Facet.BossBar<V>
,Facet.FakeEntity<V,
,P> Facet.Position<V,
P>
A facet that listens to boss bar changes, using fake entities.
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.platform.facet.Facet
Facet.ActionBar<V,
M>, Facet.Book<V, M, B>, Facet.BossBar<V>, Facet.BossBarEntity<V, P>, Facet.BossBarPacket<V>, Facet.Chat<V, M>, Facet.ChatPacket<V, M>, Facet.EntitySound<V, M>, Facet.FakeEntity<V, P>, Facet.Message<V, M>, Facet.Pointers<V>, Facet.Position<V, P>, Facet.Sound<V, P>, Facet.TabList<V, M>, Facet.Title<V, M, C, T>, Facet.TitlePacket<V, M, C, T> 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
Fields inherited from interface net.kyori.adventure.platform.facet.Facet.BossBar
PROTOCOL_BOSS_BAR
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Adds a viewer to the boss bar.default void
bossBarNameChanged
(@NotNull BossBar bar, @NotNull Component oldName, @NotNull Component newName) default void
bossBarProgressChanged
(@NotNull BossBar bar, float oldProgress, float newProgress) default void
removeViewer
(V viewer) Removes a viewer from the boss bar.Methods inherited from interface net.kyori.adventure.bossbar.BossBar.Listener
bossBarColorChanged, bossBarFlagsChanged, bossBarOverlayChanged, bossBarPercentChanged
Methods inherited from interface net.kyori.adventure.platform.facet.Facet
isApplicable, isSupported
Methods inherited from interface net.kyori.adventure.platform.facet.Facet.BossBar
bossBarInitialized, close, isEmpty
Methods inherited from interface net.kyori.adventure.platform.facet.Facet.FakeEntity
close, health, invisible, metadata, name, teleport
Methods inherited from interface net.kyori.adventure.platform.facet.Facet.Position
createPosition, createPosition
-
Field Details
-
OFFSET_PITCH
static final int OFFSET_PITCH- See Also:
-
OFFSET_YAW
static final int OFFSET_YAW- See Also:
-
OFFSET_MAGNITUDE
static final int OFFSET_MAGNITUDE- See Also:
-
INVULNERABLE_KEY
static final int INVULNERABLE_KEY- See Also:
-
INVULNERABLE_TICKS
static final int INVULNERABLE_TICKS- See Also:
-
-
Method Details
-
bossBarProgressChanged
- Specified by:
bossBarProgressChanged
in interfaceBossBar.Listener
-
bossBarNameChanged
default void bossBarNameChanged(@NotNull BossBar bar, @NotNull @NotNull Component oldName, @NotNull @NotNull Component newName) - Specified by:
bossBarNameChanged
in interfaceBossBar.Listener
-
addViewer
Description copied from interface:Facet.BossBar
Adds a viewer to the boss bar.- Specified by:
addViewer
in interfaceFacet.BossBar<V>
- Parameters:
viewer
- a viewer
-
removeViewer
Description copied from interface:Facet.BossBar
Removes a viewer from the boss bar.- Specified by:
removeViewer
in interfaceFacet.BossBar<V>
- Parameters:
viewer
- a viewer
-