Interface SoundInstance

All Known Subinterfaces:
TickableSoundInstance
All Known Implementing Classes:
AbstractBeeSoundInstance, AbstractSoundInstance, AggressiveBeeSoundInstance, AmbientSoundLoops.MusicLoop, AmbientSoundLoops.Underwater, BiomeEffectSoundPlayer.MusicLoop, ElytraSoundInstance, EntityTrackingSoundInstance, GuardianAttackSoundInstance, MinecartInsideSoundInstance, MovingMinecartSoundInstance, MovingSoundInstance, PassiveBeeSoundInstance, PositionedSoundInstance

@Environment(CLIENT)
public interface SoundInstance
  • Method Details

    • getId

      Identifier getId()
    • getSoundSet

      @Nullable WeightedSoundSet getSoundSet​(SoundManager soundManager)
    • getSound

      Sound getSound()
    • getCategory

      SoundCategory getCategory()
    • isRepeatable

      boolean isRepeatable()
    • isLooping

      boolean isLooping()
    • getRepeatDelay

      int getRepeatDelay()
    • getVolume

      float getVolume()
    • getPitch

      float getPitch()
    • getX

      double getX()
    • getY

      double getY()
    • getZ

      double getZ()
    • getAttenuationType

      SoundInstance.AttenuationType getAttenuationType()
    • shouldAlwaysPlay

      default boolean shouldAlwaysPlay()
    • canPlay

      default boolean canPlay()