Interface SoundEffectData

All Known Implementing Classes:
SoundEffectData.Holder, SoundEffectData.HolderReference, SoundEffectData.SoundEvent

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 Classes
    Modifier and Type
    Interface
    Description
    static final record 
    Implementation for generic Holder wrapped SoundEvent instances.
    static final record 
    Implementation for Holder.Reference wrapped SoundEvent instances.
    static final record 
    Implementation for direct, unboxed SoundEvent instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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.