Class PixelmonMusic
java.lang.Object
com.pixelmonmod.pixelmon.client.music.PixelmonMusic
Created by Jay113355 on 8/16/2021.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
fadeSound
(net.minecraft.client.resources.sounds.SoundInstance sound, float initialVolume, long factor, boolean fadeOut) static void
fadeSoundToStart
(net.minecraft.client.resources.sounds.SoundInstance sound, long millis) static void
fadeSoundToStop
(net.minecraft.client.resources.sounds.SoundInstance sound, long millis) static void
fadeSoundToStop
(net.minecraft.client.resources.sounds.SoundInstance sound, long millis, Runnable finishTask) static net.minecraft.client.sounds.SoundManager
static void
init
(net.minecraft.client.Minecraft mc) WARNING make sure this is called before any modifications are made to field's like music ticker.static void
onSoundReloadEvent
(net.minecraftforge.client.event.sound.SoundEngineLoadEvent event) static void
pause
(net.minecraft.client.resources.sounds.SoundInstance sound) static void
resetFade
(net.minecraft.client.resources.sounds.SoundInstance sound, boolean fadeOut) static void
resume
(net.minecraft.client.resources.sounds.SoundInstance sound)
-
Field Details
-
EXECUTOR
-
-
Constructor Details
-
PixelmonMusic
public PixelmonMusic()
-
-
Method Details
-
onSoundReloadEvent
public static void onSoundReloadEvent(net.minecraftforge.client.event.sound.SoundEngineLoadEvent event) -
init
public static void init(net.minecraft.client.Minecraft mc) WARNING make sure this is called before any modifications are made to field's like music ticker. -
getSoundHandler
public static net.minecraft.client.sounds.SoundManager getSoundHandler() -
fadeSoundToStart
public static void fadeSoundToStart(net.minecraft.client.resources.sounds.SoundInstance sound, long millis) -
fadeSoundToStop
public static void fadeSoundToStop(net.minecraft.client.resources.sounds.SoundInstance sound, long millis) -
fadeSoundToStop
public static void fadeSoundToStop(net.minecraft.client.resources.sounds.SoundInstance sound, long millis, Runnable finishTask) -
pause
public static void pause(net.minecraft.client.resources.sounds.SoundInstance sound) -
resume
public static void resume(net.minecraft.client.resources.sounds.SoundInstance sound) -
fadeSound
public static float fadeSound(net.minecraft.client.resources.sounds.SoundInstance sound, float initialVolume, long factor, boolean fadeOut) -
resetFade
public static void resetFade(net.minecraft.client.resources.sounds.SoundInstance sound, boolean fadeOut)
-