Class ClientInstanceManager

java.lang.Object
de.mrjulsen.dragnsounds.core.ClientInstanceManager

public final class ClientInstanceManager extends Object
  • Constructor Details

    • ClientInstanceManager

      public ClientInstanceManager()
  • Method Details

    • receiveSoundData

      public static final void receiveSoundData(SoundDataPacket packet)
    • addSoundRequestCallback

      public static long addSoundRequestCallback(Consumer<Long> callback)
    • runSoundRequestCallback

      public static void runSoundRequestCallback(long requestId, long soundId)
    • addRunnableCallback

      public static void addRunnableCallback(long id, Runnable task)
    • runRunnableCallback

      public static void runRunnableCallback(long id)
    • createSoundCommandListener

      public static SoundCommandListener createSoundCommandListener(long soundId)
    • getSoundCommandListener

      public static SoundCommandListener getSoundCommandListener(long soundId)
    • getInstancesOfSound

      public static long[] getInstancesOfSound(SoundFile file)
    • getAllSoundIds

      public static long[] getAllSoundIds()
    • isAnyInstanceOfSoundPlaying

      public static boolean isAnyInstanceOfSoundPlaying(SoundFile file)
    • removeSoundCommandListener

      public static SoundCommandListener removeSoundCommandListener(long soundId)
    • isSoundIdBlocked

      public static boolean isSoundIdBlocked(long soundId)
    • closeUploadCallbacks

      public static void closeUploadCallbacks(long id)
    • delayedSoundGC

      public static void delayedSoundGC(long soundId, int delay)
    • clearCallbacks

      public static void clearCallbacks()
    • debugString

      public static String debugString()
    • debugComponent

      public static net.minecraft.network.chat.MutableComponent debugComponent()