类 SoundEvent.SoundSourceEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.sound.SoundEvent
net.minecraftforge.client.event.sound.SoundEvent.SoundSourceEvent
直接已知子类:
PlaySoundSourceEvent, PlayStreamingSourceEvent
封闭类:
SoundEvent

public abstract static class SoundEvent.SoundSourceEvent extends SoundEvent
Superclass for when a sound has started to play on an audio channel.

These events are fired on the main Forge event bus, only on the logical client.

另请参阅:
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • getSound

      public SoundInstance getSound()
      返回 the sound being played。
      返回:
      the sound being played
    • getChannel

      public Channel getChannel()
      返回 the audio channel on which the sound is playing on。
      返回:
      the audio channel on which the sound is playing on
    • getName

      public String getName()
      返回 the name of the sound being played。 This is equivalent to the path of the location of the original sound.
      返回:
      the name of the sound being played