Interface Facet.BossBarEntity<V,P>
-
- Type Parameters:
V
- a viewer typeP
- a position type
- All Superinterfaces:
java.lang.AutoCloseable
,BossBar.Listener
,java.io.Closeable
,Facet<V>
,Facet.BossBar<V>
,Facet.FakeEntity<V,P>
,Facet.Position<V,P>
public static interface Facet.BossBarEntity<V,P> extends Facet.BossBar<V>, Facet.FakeEntity<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
Fields Modifier and Type Field Description static int
INVULNERABLE_KEY
static int
INVULNERABLE_TICKS
static int
OFFSET_MAGNITUDE
static int
OFFSET_PITCH
static int
OFFSET_YAW
-
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 void
addViewer(V viewer)
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 Detail
-
OFFSET_PITCH
static final int OFFSET_PITCH
- See Also:
- Constant Field Values
-
OFFSET_YAW
static final int OFFSET_YAW
- See Also:
- Constant Field Values
-
OFFSET_MAGNITUDE
static final int OFFSET_MAGNITUDE
- See Also:
- Constant Field Values
-
INVULNERABLE_KEY
static final int INVULNERABLE_KEY
- See Also:
- Constant Field Values
-
INVULNERABLE_TICKS
static final int INVULNERABLE_TICKS
- See Also:
- Constant Field Values
-
-
Method Detail
-
bossBarProgressChanged
default void bossBarProgressChanged(@NotNull BossBar bar, float oldProgress, float newProgress)
- 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
default void addViewer(@NotNull V viewer)
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
default void removeViewer(@NotNull V viewer)
Description copied from interface:Facet.BossBar
Removes a viewer from the boss bar.- Specified by:
removeViewer
in interfaceFacet.BossBar<V>
- Parameters:
viewer
- a viewer
-
-