public class PixelmonMusic
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.concurrent.ScheduledExecutorService |
EXECUTOR |
Constructor and Description |
---|
PixelmonMusic() |
Modifier and Type | Method and Description |
---|---|
static float |
fadeSound(net.minecraft.client.audio.ISound sound,
float initialVolume,
long factor,
boolean fadeOut) |
static void |
fadeSoundToStart(net.minecraft.client.audio.ISound sound,
long millis) |
static void |
fadeSoundToStop(net.minecraft.client.audio.ISound sound,
long millis) |
static void |
fadeSoundToStop(net.minecraft.client.audio.ISound sound,
long millis,
java.lang.Runnable runnable) |
static net.minecraft.client.audio.MusicTicker |
getMusicTicker() |
static net.minecraft.client.audio.SoundHandler |
getSoundHandler() |
static net.minecraft.client.audio.SoundEngine |
getSoundManager() |
static net.minecraft.client.audio.SoundSystem |
getSoundSystem() |
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.SoundLoadEvent event) |
static void |
pause(net.minecraft.client.audio.ISound sound) |
static void |
resetFade(net.minecraft.client.audio.ISound sound,
boolean fadeOut) |
static void |
resume(net.minecraft.client.audio.ISound sound) |
public static void onSoundReloadEvent(net.minecraftforge.client.event.sound.SoundLoadEvent event)
public static void init(net.minecraft.client.Minecraft mc)
public static net.minecraft.client.audio.MusicTicker getMusicTicker()
public static net.minecraft.client.audio.SoundHandler getSoundHandler()
public static net.minecraft.client.audio.SoundEngine getSoundManager()
public static net.minecraft.client.audio.SoundSystem getSoundSystem()
public static void fadeSoundToStart(net.minecraft.client.audio.ISound sound, long millis)
public static void fadeSoundToStop(net.minecraft.client.audio.ISound sound, long millis)
public static void fadeSoundToStop(net.minecraft.client.audio.ISound sound, long millis, java.lang.Runnable runnable)
public static void pause(net.minecraft.client.audio.ISound sound)
public static void resume(net.minecraft.client.audio.ISound sound)
public static float fadeSound(net.minecraft.client.audio.ISound sound, float initialVolume, long factor, boolean fadeOut)
public static void resetFade(net.minecraft.client.audio.ISound sound, boolean fadeOut)