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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from interface net.kyori.adventure.platform.facet.Facet.BossBar
PROTOCOL_BOSS_BAR, VERSION_BOSS_BAR -
Method Summary
Modifier and TypeMethodDescriptiondefault voidAdds a viewer to the boss bar.default voidbossBarNameChanged(@NotNull BossBar bar, @NotNull Component oldName, @NotNull Component newName) default voidbossBarProgressChanged(@NotNull BossBar bar, float oldProgress, float newProgress) default voidremoveViewer(V viewer) Removes a viewer from the boss bar.Methods inherited from interface net.kyori.adventure.bossbar.BossBar.Listener
bossBarColorChanged, bossBarFlagsChanged, bossBarOverlayChanged, bossBarPercentChangedMethods inherited from interface net.kyori.adventure.platform.facet.Facet
isApplicable, isSupportedMethods inherited from interface net.kyori.adventure.platform.facet.Facet.BossBar
bossBarInitialized, close, isEmptyMethods inherited from interface net.kyori.adventure.platform.facet.Facet.FakeEntity
close, health, invisible, metadata, name, teleportMethods 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:
bossBarProgressChangedin interfaceBossBar.Listener
-
bossBarNameChanged
default void bossBarNameChanged(@NotNull BossBar bar, @NotNull @NotNull Component oldName, @NotNull @NotNull Component newName) - Specified by:
bossBarNameChangedin interfaceBossBar.Listener
-
addViewer
Description copied from interface:Facet.BossBarAdds a viewer to the boss bar.- Specified by:
addViewerin interfaceFacet.BossBar<V>- Parameters:
viewer- a viewer
-
removeViewer
Description copied from interface:Facet.BossBarRemoves a viewer from the boss bar.- Specified by:
removeViewerin interfaceFacet.BossBar<V>- Parameters:
viewer- a viewer
-