Class VoiceSoundInstanceImpl
java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
purplecreate.tramways.content.announcements.sound.VoiceSoundInstance
purplecreate.tramways.content.announcements.sound.fabric.VoiceSoundInstanceImpl
- All Implemented Interfaces:
net.fabricmc.fabric.api.client.sound.v1.FabricSoundInstance
,net.minecraft.client.resources.sounds.SoundInstance
@Environment(CLIENT)
public class VoiceSoundInstanceImpl
extends VoiceSoundInstance
implements net.fabricmc.fabric.api.client.sound.v1.FabricSoundInstance
-
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 purplecreate.tramways.content.announcements.sound.VoiceSoundInstance
stream
Fields inherited from class net.minecraft.client.resources.sounds.AbstractSoundInstance
attenuation, delay, location, looping, pitch, random, relative, sound, source, volume, x, y, z
Fields inherited from interface net.fabricmc.fabric.api.client.sound.v1.FabricSoundInstance
EMPTY_SOUND
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
VoiceSoundInstanceImpl
(net.minecraft.client.sounds.AudioStream stream, net.minecraft.core.BlockPos pos) -
Method Summary
Modifier and TypeMethodDescriptionstatic VoiceSoundInstance
create
(net.minecraft.client.sounds.AudioStream stream, net.minecraft.core.BlockPos pos) CompletableFuture<net.minecraft.client.sounds.AudioStream>
getAudioStream
(net.minecraft.client.sounds.SoundBufferLibrary loader, net.minecraft.resources.ResourceLocation id, boolean repeatInstantly) Methods inherited from class purplecreate.tramways.content.announcements.sound.VoiceSoundInstance
getSound
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
-
Constructor Details
-
VoiceSoundInstanceImpl
protected VoiceSoundInstanceImpl(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) -
getAudioStream
public CompletableFuture<net.minecraft.client.sounds.AudioStream> getAudioStream(net.minecraft.client.sounds.SoundBufferLibrary loader, net.minecraft.resources.ResourceLocation id, boolean repeatInstantly) - Specified by:
getAudioStream
in interfacenet.fabricmc.fabric.api.client.sound.v1.FabricSoundInstance
-