Package de.mrjulsen.dragnsounds.core
Klasse ClientSoundManager
java.lang.Object
de.mrjulsen.dragnsounds.core.ClientSoundManager
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voidgetAllSoundFiles(Collection<IFilter<SoundFile>> filters, Consumer<SoundFile[]> callback) static SoundFilegetClientDummySoundFile(String location, String id) static SoundPlaybackDatagetData(long soundId) static voidgetSoundFile(SoundLocation location, String id, Consumer<Optional<SoundFile>> callback) static voidinit()static voidplaySoundQueue(long soundId, int triggerIndex, SoundFile file, PlaybackConfig playback, long clientCallbackRequestId) static voidplayUiSound(long soundId, SoundFile file, float volume, float pitch) static voidplayUiSound(long soundId, SoundFile file, net.minecraft.sounds.SoundSource source, float volume, float pitch) static voidplayWorldSound(long soundId, SoundFile file, float volume, float pitch, net.minecraft.world.phys.Vec3 pos, boolean relative, int attenuationDistance) static voidplayWorldSound(long soundId, SoundFile file, net.minecraft.sounds.SoundSource source, float volume, float pitch, net.minecraft.world.phys.Vec3 pos, boolean relative, int attenuationDistance) static voidprintDebug(List<String> debugScreen) static voidstatic voidseek(long soundId, int ticks) static voidsetAttenuationDistance(long soundId, float distance) static voidsetCone(long soundId, net.minecraft.world.phys.Vec3 direction, float angleA, float angleB, float outerGain) static voidsetDirection(long soundId, net.minecraft.world.phys.Vec3 direction) static voidsetDoppler(long soundId, float dopplerFactor, net.minecraft.world.phys.Vec3 velocity) static voidsetPaused(long soundId, boolean pause) static voidsetPitch(long soundId, float pitch) static voidsetPosition(long soundId, net.minecraft.world.phys.Vec3 position) static voidsetVolume(long soundId, float volume) static voidstatic voidstatic voidstopSound(long soundId) static longuploadSound(String filePath, SoundFile.Builder targetSettings, AudioSettings settings, Consumer<Optional<SoundFile>> afterUpload, BiConsumer<ClientApi.UploadProgress, ClientApi.UploadProgress> progress, Consumer<de.mrjulsen.mcdragonlib.data.StatusResult> onError) static longuploadSoundFile(String filePath, SoundFile.Builder targetSettings, AudioSettings settings, Consumer<Optional<SoundFile>> afterUpload, BiConsumer<ClientApi.UploadProgress, ClientApi.UploadProgress> progress, Consumer<de.mrjulsen.mcdragonlib.data.StatusResult> onError) Veraltet.static longuploadSoundStream(InputStream audioStream, SoundFile.Builder targetSettings, AudioSettings settings, Consumer<Optional<SoundFile>> afterUpload, BiConsumer<ClientApi.UploadProgress, ClientApi.UploadProgress> progress, Consumer<de.mrjulsen.mcdragonlib.data.StatusResult> onError)
-
Konstruktordetails
-
ClientSoundManager
public ClientSoundManager()
-
-
Methodendetails
-
init
public static void init() -
playUiSound
-
playWorldSound
public static void playWorldSound(long soundId, SoundFile file, float volume, float pitch, net.minecraft.world.phys.Vec3 pos, boolean relative, int attenuationDistance) -
playUiSound
public static void playUiSound(long soundId, SoundFile file, net.minecraft.sounds.SoundSource source, float volume, float pitch) -
playWorldSound
public static void playWorldSound(long soundId, SoundFile file, net.minecraft.sounds.SoundSource source, float volume, float pitch, net.minecraft.world.phys.Vec3 pos, boolean relative, int attenuationDistance) -
playSoundQueue
public static void playSoundQueue(long soundId, int triggerIndex, SoundFile file, PlaybackConfig playback, long clientCallbackRequestId) -
getData
-
setDoppler
public static void setDoppler(long soundId, float dopplerFactor, net.minecraft.world.phys.Vec3 velocity) -
setCone
public static void setCone(long soundId, net.minecraft.world.phys.Vec3 direction, float angleA, float angleB, float outerGain) -
setDirection
public static void setDirection(long soundId, net.minecraft.world.phys.Vec3 direction) -
setVolume
public static void setVolume(long soundId, float volume) -
setPaused
public static void setPaused(long soundId, boolean pause) -
setPitch
public static void setPitch(long soundId, float pitch) -
setPosition
public static void setPosition(long soundId, net.minecraft.world.phys.Vec3 position) -
setAttenuationDistance
public static void setAttenuationDistance(long soundId, float distance) -
seek
public static void seek(long soundId, int ticks) -
stopSound
public static void stopSound(long soundId) -
stopAllSoundInstances
-
stopAllSounds
public static void stopAllSounds() -
queueTask
-
uploadSound
public static long uploadSound(String filePath, SoundFile.Builder targetSettings, AudioSettings settings, Consumer<Optional<SoundFile>> afterUpload, BiConsumer<ClientApi.UploadProgress, ClientApi.UploadProgress> progress, Consumer<de.mrjulsen.mcdragonlib.data.StatusResult> onError) -
uploadSoundStream
public static long uploadSoundStream(InputStream audioStream, SoundFile.Builder targetSettings, AudioSettings settings, Consumer<Optional<SoundFile>> afterUpload, BiConsumer<ClientApi.UploadProgress, ClientApi.UploadProgress> progress, Consumer<de.mrjulsen.mcdragonlib.data.StatusResult> onError) -
uploadSoundFile
@Deprecated public static long uploadSoundFile(String filePath, SoundFile.Builder targetSettings, AudioSettings settings, Consumer<Optional<SoundFile>> afterUpload, BiConsumer<ClientApi.UploadProgress, ClientApi.UploadProgress> progress, Consumer<de.mrjulsen.mcdragonlib.data.StatusResult> onError) Veraltet. -
getAllSoundFiles
public static void getAllSoundFiles(Collection<IFilter<SoundFile>> filters, Consumer<SoundFile[]> callback) -
getSoundFile
public static void getSoundFile(SoundLocation location, String id, Consumer<Optional<SoundFile>> callback) -
getClientDummySoundFile
-
printDebug
-