Class VoiceSoundInstance

java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
purplecreate.tramways.content.announcements.sound.VoiceSoundInstance
All Implemented Interfaces:
net.minecraft.client.resources.sounds.SoundInstance
Direct Known Subclasses:
MovingVoiceSoundInstance, VoiceSoundInstanceImpl, VoiceSoundInstanceImpl

@Environment(CLIENT) public class VoiceSoundInstance extends net.minecraft.client.resources.sounds.AbstractSoundInstance
  • 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
    protected final net.minecraft.client.sounds.AudioStream
     

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

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

    Constructors
    Modifier
    Constructor
    Description
    protected
    VoiceSoundInstance(net.minecraft.client.sounds.AudioStream stream, net.minecraft.core.BlockPos pos)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(net.minecraft.client.sounds.AudioStream stream, net.minecraft.core.BlockPos pos)
     
    net.minecraft.client.resources.sounds.Sound
     

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

    getAttenuation, getDelay, getLocation, getPitch, 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
  • Field Details

    • stream

      protected final net.minecraft.client.sounds.AudioStream stream
  • Constructor Details

    • VoiceSoundInstance

      protected VoiceSoundInstance(net.minecraft.client.sounds.AudioStream stream, net.minecraft.core.BlockPos pos)
  • Method Details

    • create

      public static VoiceSoundInstance create(net.minecraft.client.sounds.AudioStream stream, net.minecraft.core.BlockPos pos)
    • getSound

      public net.minecraft.client.resources.sounds.Sound getSound()
      Specified by:
      getSound in interface net.minecraft.client.resources.sounds.SoundInstance
      Overrides:
      getSound in class net.minecraft.client.resources.sounds.AbstractSoundInstance