Class FadingDistanceSwitchingSound

java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
net.frozenblock.lib.sound.api.instances.distance_based.FadingDistanceSwitchingSound
All Implemented Interfaces:
net.fabricmc.fabric.api.client.sound.v1.FabricSoundInstance, net.minecraft.client.resources.sounds.SoundInstance, net.minecraft.client.resources.sounds.TickableSoundInstance

@Environment(CLIENT) public class FadingDistanceSwitchingSound extends net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.client.resources.sounds.SoundInstance

    net.minecraft.client.resources.sounds.SoundInstance.Attenuation
  • Field Summary

    Fields inherited from class net.minecraft.client.resources.sounds.AbstractSoundInstance

    attenuation, delay, location, looping, pitch, random, relative, sound, source, volume, x, y, z

    Fields inherited from interface net.fabricmc.fabric.api.client.sound.v1.FabricSoundInstance

    EMPTY_SOUND
  • Constructor Summary

    Constructors
    Constructor
    Description
    FadingDistanceSwitchingSound(net.minecraft.sounds.SoundEvent sound, net.minecraft.sounds.SoundSource category, float volume, float pitch, double fadeDist, double maxDist, float maxVol, boolean isFarSound, double x, double y, double z)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class net.minecraft.client.resources.sounds.AbstractTickableSoundInstance

    isStopped, stop

    Methods inherited from class net.minecraft.client.resources.sounds.AbstractSoundInstance

    getAttenuation, getDelay, getLocation, getPitch, getSound, getSource, getVolume, getX, getY, getZ, isLooping, isRelative, resolve, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.fabricmc.fabric.api.client.sound.v1.FabricSoundInstance

    getAudioStream

    Methods inherited from interface net.minecraft.client.resources.sounds.SoundInstance

    canPlaySound, canStartSilent, getAttenuation, getDelay, getLocation, getPitch, getSound, getSource, getVolume, getX, getY, getZ, isLooping, isRelative, resolve
  • Constructor Details

    • FadingDistanceSwitchingSound

      public FadingDistanceSwitchingSound(net.minecraft.sounds.SoundEvent sound, net.minecraft.sounds.SoundSource category, float volume, float pitch, double fadeDist, double maxDist, float maxVol, boolean isFarSound, double x, double y, double z)
  • Method Details

    • tick

      public void tick()