Interface Facet.EntitySound<V,M>
-
-
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>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description McreateForEmitter(@NotNull net.kyori.adventure.sound.Sound sound, @NotNull net.kyori.adventure.sound.Sound.Emitter emitter)Create a sound packet following a specific emitter.McreateForSelf(V viewer, @NotNull net.kyori.adventure.sound.Sound sound)Create a sound packet following the viewer themself.voidplaySound(V viewer, M message)Play a created sound message to a viewer.-
Methods inherited from interface net.kyori.adventure.platform.facet.Facet
isApplicable, isSupported
-
-
-
-
Method Detail
-
createForSelf
M createForSelf(V viewer, @NotNull net.kyori.adventure.sound.Sound sound)
Create a sound packet following the viewer themself.- Parameters:
viewer- the receiver of the soundsound- the sound to play- Returns:
- a new packet
- Since:
- 4.0.0
-
createForEmitter
M createForEmitter(@NotNull net.kyori.adventure.sound.Sound sound, @NotNull net.kyori.adventure.sound.Sound.Emitter emitter)
Create a sound packet following a specific emitter.- Parameters:
sound- the sound to playemitter- the emitter to track- Returns:
- a new packet
- Since:
- 4.0.0
-
-