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
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected net.minecraft.client.resources.sounds.Soundprotected final booleanprotected final floatprotected final net.minecraft.world.phys.Vec3protected final net.minecraft.util.RandomSourceprotected final Stringprotected @Nullable net.minecraft.client.sounds.JOrbisAudioStream -
Constructor Summary
ConstructorsConstructorDescriptionHeadpatSoundInstance(String name, boolean isGithub, net.minecraft.world.phys.Vec3 pos, float pitch, net.minecraft.util.RandomSource random) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.resources.sounds.SoundInstance.AttenuationCompletableFuture<net.minecraft.client.sounds.AudioStream> getAudioStream(net.minecraft.client.sounds.SoundBufferLibrary soundBuffers, net.minecraft.resources.ResourceLocation id, boolean looping) intgetDelay()net.minecraft.resources.ResourceLocationfloatgetPitch()net.minecraft.client.resources.sounds.SoundgetSound()net.minecraft.sounds.SoundSourceCompletableFuture<net.minecraft.client.sounds.AudioStream> getStream(net.minecraft.client.sounds.SoundBufferLibrary soundBuffers, net.minecraft.client.resources.sounds.Sound sound, boolean looping) floatdoublegetX()protected CompletableFuture<net.minecraft.client.sounds.AudioStream> getXplatAudioStreamCommon(net.minecraft.client.sounds.SoundBufferLibrary soundBuffers, boolean looping) doublegetY()doublegetZ()booleanboolean@Nullable net.minecraft.client.sounds.WeighedSoundEventsresolve(net.minecraft.client.sounds.SoundManager manager) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.resources.sounds.SoundInstance
canPlaySound, canStartSilent
-
Field Details
-
DUMMY_LOCATION
- See Also:
-
isGithub
protected final boolean isGithub -
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:
getLocationin interfacenet.minecraft.client.resources.sounds.SoundInstance
-
resolve
@Nullable public @Nullable net.minecraft.client.sounds.WeighedSoundEvents resolve(net.minecraft.client.sounds.SoundManager manager) - Specified by:
resolvein interfacenet.minecraft.client.resources.sounds.SoundInstance
-
getSound
public net.minecraft.client.resources.sounds.Sound getSound()- Specified by:
getSoundin interfacenet.minecraft.client.resources.sounds.SoundInstance
-
getPitch
public float getPitch()- Specified by:
getPitchin interfacenet.minecraft.client.resources.sounds.SoundInstance
-
getX
public double getX()- Specified by:
getXin interfacenet.minecraft.client.resources.sounds.SoundInstance
-
getY
public double getY()- Specified by:
getYin interfacenet.minecraft.client.resources.sounds.SoundInstance
-
getZ
public double getZ()- Specified by:
getZin interfacenet.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:
getVolumein interfacenet.minecraft.client.resources.sounds.SoundInstance
-
getAttenuation
public net.minecraft.client.resources.sounds.SoundInstance.Attenuation getAttenuation()- Specified by:
getAttenuationin interfacenet.minecraft.client.resources.sounds.SoundInstance
-
getSource
public net.minecraft.sounds.SoundSource getSource()- Specified by:
getSourcein interfacenet.minecraft.client.resources.sounds.SoundInstance
-
isLooping
public boolean isLooping()- Specified by:
isLoopingin interfacenet.minecraft.client.resources.sounds.SoundInstance
-
isRelative
public boolean isRelative()- Specified by:
isRelativein interfacenet.minecraft.client.resources.sounds.SoundInstance
-
getDelay
public int getDelay()- Specified by:
getDelayin interfacenet.minecraft.client.resources.sounds.SoundInstance
-