Class PixelmonMusic

java.lang.Object
com.pixelmonmod.pixelmon.client.music.PixelmonMusic

public class PixelmonMusic extends Object
Created by Jay113355 on 8/16/2021.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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)