Package de.mrjulsen.dragnsounds.core
Class ClientInstanceManager
java.lang.Object
de.mrjulsen.dragnsounds.core.ClientInstanceManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addRunnableCallback
(long id, Runnable task) static long
addSoundRequestCallback
(Consumer<Long> callback) static void
static void
closeUploadCallbacks
(long id) static SoundCommandListener
createSoundCommandListener
(long soundId) static net.minecraft.network.chat.MutableComponent
static String
static void
delayedSoundGC
(long soundId, int delay) static long[]
static long[]
getInstancesOfSound
(SoundFile file) static SoundCommandListener
getSoundCommandListener
(long soundId) static boolean
static boolean
isSoundIdBlocked
(long soundId) static final void
receiveSoundData
(SoundDataPacket packet) static SoundCommandListener
removeSoundCommandListener
(long soundId) static void
runRunnableCallback
(long id) static void
runSoundRequestCallback
(long requestId, long soundId)
-
Constructor Details
-
ClientInstanceManager
public ClientInstanceManager()
-
-
Method Details
-
receiveSoundData
-
addSoundRequestCallback
-
runSoundRequestCallback
public static void runSoundRequestCallback(long requestId, long soundId) -
addRunnableCallback
-
runRunnableCallback
public static void runRunnableCallback(long id) -
createSoundCommandListener
-
getSoundCommandListener
-
getInstancesOfSound
-
getAllSoundIds
public static long[] getAllSoundIds() -
isAnyInstanceOfSoundPlaying
-
removeSoundCommandListener
-
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
-
debugComponent
public static net.minecraft.network.chat.MutableComponent debugComponent()
-