java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
com.simibubi.create.content.contraptions.components.steam.whistle.WhistleSoundInstance
All Implemented Interfaces:
net.minecraft.client.resources.sounds.SoundInstance, net.minecraft.client.resources.sounds.TickableSoundInstance

public class WhistleSoundInstance 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
    Constructor
    Description
    WhistleSoundInstance(WhistleBlock.WhistleSize size, net.minecraft.core.BlockPos worldPosition)
     
  • Method Summary

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

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

    • WhistleSoundInstance

      public WhistleSoundInstance(WhistleBlock.WhistleSize size, net.minecraft.core.BlockPos worldPosition)
  • Method Details

    • getOctave

      public WhistleBlock.WhistleSize getOctave()
    • fadeOut

      public void fadeOut()
    • keepAlive

      public void keepAlive()
    • setPitch

      public void setPitch(float pitch)
    • tick

      public void tick()