Class RocketAirSound

java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
com.lightning.northstar.contraption.rocket.RocketAirSound
All Implemented Interfaces:
net.minecraft.client.resources.sounds.SoundInstance, net.minecraft.client.resources.sounds.TickableSoundInstance

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

    Constructors
    Constructor
    Description
    RocketAirSound(net.minecraft.sounds.SoundEvent snd, float pitch, RocketContraptionEntity pParent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fadeIn(float maxVolume)
     
    void
     
    float
     
    boolean
     
    void
    setPitch(float pitch)
     
    void
    setVolume(float vol)
     
    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, 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.minecraft.client.resources.sounds.SoundInstance

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

    • RocketAirSound

      public RocketAirSound(net.minecraft.sounds.SoundEvent snd, float pitch, RocketContraptionEntity pParent)
  • Method Details

    • tick

      public void tick()
    • setPitch

      public void setPitch(float pitch)
    • setVolume

      public void setVolume(float vol)
    • fadeIn

      public void fadeIn(float maxVolume)
    • fadeOut

      public void fadeOut()
    • isFaded

      public boolean isFaded()
    • 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
    • stopSound

      public void stopSound()