Class HeadpatSoundInstance

java.lang.Object
at.petrak.paucal.xplat.common.sounds.HeadpatSoundInstance
All Implemented Interfaces:
net.minecraft.client.resources.sounds.SoundInstance

public class HeadpatSoundInstance extends Object implements net.minecraft.client.resources.sounds.SoundInstance
  • 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
    Modifier and Type
    Field
    Description
    static final String
     
    protected net.minecraft.client.resources.sounds.Sound
     
    protected final boolean
     
    protected final float
     
    protected final net.minecraft.world.phys.Vec3
     
    protected final net.minecraft.util.RandomSource
     
    protected final String
     
    protected @Nullable net.minecraft.client.sounds.JOrbisAudioStream
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    HeadpatSoundInstance(String name, boolean isGithub, net.minecraft.world.phys.Vec3 pos, float pitch, net.minecraft.util.RandomSource random)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.resources.sounds.SoundInstance.Attenuation
     
    CompletableFuture<net.minecraft.client.sounds.AudioStream>
    getAudioStream(net.minecraft.client.sounds.SoundBufferLibrary soundBuffers, net.minecraft.resources.ResourceLocation id, boolean looping)
     
    int
     
    net.minecraft.resources.ResourceLocation
     
    float
     
    net.minecraft.client.resources.sounds.Sound
     
    net.minecraft.sounds.SoundSource
     
    CompletableFuture<net.minecraft.client.sounds.AudioStream>
    getStream(net.minecraft.client.sounds.SoundBufferLibrary soundBuffers, net.minecraft.client.resources.sounds.Sound sound, boolean looping)
     
    float
     
    double
     
    protected CompletableFuture<net.minecraft.client.sounds.AudioStream>
    getXplatAudioStreamCommon(net.minecraft.client.sounds.SoundBufferLibrary soundBuffers, boolean looping)
     
    double
     
    double
     
    boolean
     
    boolean
     
    @Nullable net.minecraft.client.sounds.WeighedSoundEvents
    resolve(net.minecraft.client.sounds.SoundManager manager)
     

    Methods inherited from class java.lang.Object

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

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

    canPlaySound, canStartSilent
  • Field Details

    • DUMMY_LOCATION

      public static final String DUMMY_LOCATION
      See Also:
    • isGithub

      protected final boolean isGithub
    • soundName

      protected final String soundName
    • stream

      @Nullable protected @Nullable net.minecraft.client.sounds.JOrbisAudioStream stream
    • pos

      protected final net.minecraft.world.phys.Vec3 pos
    • pitch

      protected final float pitch
    • dummySound

      protected net.minecraft.client.resources.sounds.Sound dummySound
    • random

      protected final net.minecraft.util.RandomSource random
  • Constructor Details

    • HeadpatSoundInstance

      public HeadpatSoundInstance(String name, boolean isGithub, net.minecraft.world.phys.Vec3 pos, float pitch, net.minecraft.util.RandomSource random)
  • Method Details

    • getLocation

      public net.minecraft.resources.ResourceLocation getLocation()
      Specified by:
      getLocation in interface net.minecraft.client.resources.sounds.SoundInstance
    • resolve

      @Nullable public @Nullable net.minecraft.client.sounds.WeighedSoundEvents resolve(net.minecraft.client.sounds.SoundManager manager)
      Specified by:
      resolve in interface net.minecraft.client.resources.sounds.SoundInstance
    • getSound

      public net.minecraft.client.resources.sounds.Sound getSound()
      Specified by:
      getSound in interface net.minecraft.client.resources.sounds.SoundInstance
    • getPitch

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

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

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

      public double getZ()
      Specified by:
      getZ in interface net.minecraft.client.resources.sounds.SoundInstance
    • getStream

      public CompletableFuture<net.minecraft.client.sounds.AudioStream> getStream(net.minecraft.client.sounds.SoundBufferLibrary soundBuffers, net.minecraft.client.resources.sounds.Sound sound, boolean looping)
    • getAudioStream

      public CompletableFuture<net.minecraft.client.sounds.AudioStream> getAudioStream(net.minecraft.client.sounds.SoundBufferLibrary soundBuffers, net.minecraft.resources.ResourceLocation id, boolean looping)
    • getXplatAudioStreamCommon

      protected CompletableFuture<net.minecraft.client.sounds.AudioStream> getXplatAudioStreamCommon(net.minecraft.client.sounds.SoundBufferLibrary soundBuffers, boolean looping)
    • getVolume

      public float getVolume()
      Specified by:
      getVolume in interface net.minecraft.client.resources.sounds.SoundInstance
    • getAttenuation

      public net.minecraft.client.resources.sounds.SoundInstance.Attenuation getAttenuation()
      Specified by:
      getAttenuation in interface net.minecraft.client.resources.sounds.SoundInstance
    • getSource

      public net.minecraft.sounds.SoundSource getSource()
      Specified by:
      getSource in interface net.minecraft.client.resources.sounds.SoundInstance
    • isLooping

      public boolean isLooping()
      Specified by:
      isLooping in interface net.minecraft.client.resources.sounds.SoundInstance
    • isRelative

      public boolean isRelative()
      Specified by:
      isRelative in interface net.minecraft.client.resources.sounds.SoundInstance
    • getDelay

      public int getDelay()
      Specified by:
      getDelay in interface net.minecraft.client.resources.sounds.SoundInstance