Interface Facet.EntitySound<V,M>
- Type Parameters:
V
- viewer typeM
- sound packet type
- All Superinterfaces:
Facet<V>
Create a sound that follows a certain entity.
- 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> -
Method Summary
Modifier and TypeMethodDescriptioncreateForEmitter
(@NotNull Sound sound, @NotNull Sound.Emitter emitter) Create a sound packet following a specific emitter.createForSelf
(V viewer, @NotNull Sound sound) Create a sound packet following the viewer themself.void
Play a created sound message to a viewer.Methods inherited from interface net.kyori.adventure.platform.facet.Facet
isApplicable, isSupported
-
Method Details
-
createForSelf
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
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
-
playSound
Play a created sound message to a viewer.- Parameters:
viewer
- the viewer to receive the soundmessage
- the sound message to send- Since:
- 4.0.0
-