Class ContinuousSound

java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
com.simibubi.create.foundation.sound.ContinuousSound
All Implemented Interfaces:
net.minecraft.client.resources.sounds.SoundInstance, net.minecraft.client.resources.sounds.TickableSoundInstance

public class ContinuousSound 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, relative, sound, source, volume, x, y, z
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ContinuousSound(net.minecraft.sounds.SoundEvent event, com.simibubi.create.foundation.sound.SoundScape scape, float sharedPitch, float relativeVolume)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
     
    float
     
    double
     
    double
     
    double
     
    void
     
    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, getSound, getSource, 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.minecraft.client.resources.sounds.SoundInstance

    canPlaySound, canStartSilent, getAttenuation, getDelay, getLocation, getSound, getSource, getStream, isLooping, isRelative, resolve
  • Constructor Details

    • ContinuousSound

      protected ContinuousSound(net.minecraft.sounds.SoundEvent event, com.simibubi.create.foundation.sound.SoundScape scape, float sharedPitch, float relativeVolume)
  • Method Details

    • remove

      public void remove()
    • getVolume

      public float getVolume()
      Specified by:
      getVolume in interface net.minecraft.client.resources.sounds.SoundInstance
      Overrides:
      getVolume in class net.minecraft.client.resources.sounds.AbstractSoundInstance
    • getPitch

      public float getPitch()
      Specified by:
      getPitch in interface net.minecraft.client.resources.sounds.SoundInstance
      Overrides:
      getPitch in class net.minecraft.client.resources.sounds.AbstractSoundInstance
    • getX

      public double getX()
      Specified by:
      getX in interface net.minecraft.client.resources.sounds.SoundInstance
      Overrides:
      getX in class net.minecraft.client.resources.sounds.AbstractSoundInstance
    • getY

      public double getY()
      Specified by:
      getY in interface net.minecraft.client.resources.sounds.SoundInstance
      Overrides:
      getY in class net.minecraft.client.resources.sounds.AbstractSoundInstance
    • getZ

      public double getZ()
      Specified by:
      getZ in interface net.minecraft.client.resources.sounds.SoundInstance
      Overrides:
      getZ in class net.minecraft.client.resources.sounds.AbstractSoundInstance
    • tick

      public void tick()