Interface SoundPlayingCallback.ISoundCreatedCallback

Enclosing class:
SoundPlayingCallback
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface SoundPlayingCallback.ISoundCreatedCallback
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run(net.minecraft.world.entity.player.Player player, long soundId, SoundPlayingCallback.ESoundPlaybackStatus status)
    Called when the client received a sound data packet.
  • Method Details

    • run

      void run(net.minecraft.world.entity.player.Player player, long soundId, SoundPlayingCallback.ESoundPlaybackStatus status)
      Called when the client received a sound data packet.
      Parameters:
      player - The player.
      soundId - The id of the custom sound.
      status - true if the client has started playing the sound, false when the client has only received the first data packet.