Package dev.jaxydog.astral.utility
Class PositionedUnboundedSoundInstance
java.lang.Object
net.minecraft.client.sound.AbstractSoundInstance
net.minecraft.client.sound.PositionedSoundInstance
dev.jaxydog.astral.utility.PositionedUnboundedSoundInstance
- All Implemented Interfaces:
net.fabricmc.fabric.api.client.sound.v1.FabricSoundInstance,net.minecraft.client.sound.SoundInstance
public class PositionedUnboundedSoundInstance
extends net.minecraft.client.sound.PositionedSoundInstance
Simple extension class to provide type-level information to the sound engine.
- Since:
- 1.7.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.sound.SoundInstance
net.minecraft.client.sound.SoundInstance.AttenuationType -
Field Summary
Fields inherited from class net.minecraft.client.sound.AbstractSoundInstance
attenuationType, category, id, pitch, random, relative, repeat, repeatDelay, sound, volume, x, y, zFields inherited from interface net.fabricmc.fabric.api.client.sound.v1.FabricSoundInstance
EMPTY_SOUND -
Constructor Summary
ConstructorsConstructorDescriptionPositionedUnboundedSoundInstance(net.minecraft.sound.SoundEvent sound, net.minecraft.sound.SoundCategory category, float volume, float pitch, net.minecraft.util.math.random.Random random, double x, double y, double z) Creates a newPositionedUnboundedSoundInstance. -
Method Summary
Methods inherited from class net.minecraft.client.sound.PositionedSoundInstance
ambient, ambient, ambient, master, master, master, music, recordMethods inherited from class net.minecraft.client.sound.AbstractSoundInstance
getAttenuationType, getCategory, getId, getPitch, getRepeatDelay, getSound, getSoundSet, getVolume, getX, getY, getZ, isRelative, isRepeatable, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.fabricmc.fabric.api.client.sound.v1.FabricSoundInstance
getAudioStreamMethods inherited from interface net.minecraft.client.sound.SoundInstance
canPlay, shouldAlwaysPlay
-
Constructor Details
-
PositionedUnboundedSoundInstance
public PositionedUnboundedSoundInstance(net.minecraft.sound.SoundEvent sound, net.minecraft.sound.SoundCategory category, float volume, float pitch, net.minecraft.util.math.random.Random random, double x, double y, double z) Creates a newPositionedUnboundedSoundInstance.- Parameters:
sound- The sound event.category- The sound category.volume- The volume.pitch- The pitch.random- The randomness instance.x- The X position.y- The Y position.z- The Z position.- Since:
- 1.7.0
-