Interface SoundEffectData
- All Known Implementing Classes:
SoundEffectData.Holder,SoundEffectData.HolderReference,SoundEffectData.SoundEvent
public sealed interface SoundEffectData
permits SoundEffectData.SoundEvent, SoundEffectData.HolderReference, SoundEffectData.Holder
A sealed interface following the Command pattern for executing UI sound effects.
Handles the varying raw SoundEvent types found in vanilla Minecraft.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordImplementation for generic Holder wrapped SoundEvent instances.static final recordImplementation for Holder.Reference wrapped SoundEvent instances.static final recordImplementation for direct, unboxed SoundEvent instances. -
Method Summary
Modifier and TypeMethodDescriptionvoidplay()Executes the sound effect command, playing it locally for the client.
-
Method Details
-
play
void play()Executes the sound effect command, playing it locally for the client.
-