Package net.minecraft.client.sound
Class SoundExecutor
- All Implemented Interfaces:
AutoCloseable,Executor,MessageListener<Runnable>
@Environment(CLIENT) public class SoundExecutor extends ThreadExecutor<Runnable>
- Mappings:
Namespace Name official evointermediary net/minecraft/class_4238named net/minecraft/client/sound/SoundExecutor
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SoundExecutor() -
Method Summary
Modifier and Type Method Description protected booleancanExecute(Runnable task)protected RunnablecreateTask(Runnable runnable)private ThreadcreateThread()protected ThreadgetThread()voidrestart()private voidwaitForStop()protected voidwaitForTasks()Methods inherited from class net.minecraft.util.thread.ThreadExecutor
cancelTasks, execute, executeTask, getName, getTaskCount, isOnThread, runTask, runTasks, runTasks, send, shouldExecuteAsync, submit, submit, submitAndJoinMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.util.thread.MessageListener
ask, askFallible, close
-
Field Details
-
thread
- Mappings:
Namespace Name Mixin selector official aLevo;a:Ljava/lang/Thread;intermediary field_18953Lnet/minecraft/class_4238;field_18953:Ljava/lang/Thread;named threadLnet/minecraft/client/sound/SoundExecutor;thread:Ljava/lang/Thread;
-
stopped
private volatile boolean stopped- Mappings:
Namespace Name Mixin selector official bLevo;b:Zintermediary field_18954Lnet/minecraft/class_4238;field_18954:Znamed stoppedLnet/minecraft/client/sound/SoundExecutor;stopped:Z
-
-
Constructor Details
-
SoundExecutor
public SoundExecutor()
-
-
Method Details
-
createThread
- Mappings:
Namespace Name Mixin selector official bLevo;b()Ljava/lang/Thread;intermediary method_19764Lnet/minecraft/class_4238;method_19764()Ljava/lang/Thread;named createThreadLnet/minecraft/client/sound/SoundExecutor;createThread()Ljava/lang/Thread;
-
createTask
- Specified by:
createTaskin classThreadExecutor<Runnable>- Mappings:
Namespace Name Mixin selector official eLaoy;e(Ljava/lang/Runnable;)Ljava/lang/Runnable;intermediary method_16211Lnet/minecraft/class_1255;method_16211(Ljava/lang/Runnable;)Ljava/lang/Runnable;named createTaskLnet/minecraft/util/thread/ThreadExecutor;createTask(Ljava/lang/Runnable;)Ljava/lang/Runnable;
-
canExecute
- Specified by:
canExecutein classThreadExecutor<Runnable>- Mappings:
Namespace Name Mixin selector official dLaoy;d(Ljava/lang/Runnable;)Zintermediary method_18856Lnet/minecraft/class_1255;method_18856(Ljava/lang/Runnable;)Znamed canExecuteLnet/minecraft/util/thread/ThreadExecutor;canExecute(Ljava/lang/Runnable;)Z
-
getThread
- Specified by:
getThreadin classThreadExecutor<Runnable>- Mappings:
Namespace Name Mixin selector official auLaoy;au()Ljava/lang/Thread;intermediary method_3777Lnet/minecraft/class_1255;method_3777()Ljava/lang/Thread;named getThreadLnet/minecraft/util/thread/ThreadExecutor;getThread()Ljava/lang/Thread;
-
waitForStop
private void waitForStop()- Mappings:
Namespace Name Mixin selector official cLevo;c()Vintermediary method_19765Lnet/minecraft/class_4238;method_19765()Vnamed waitForStopLnet/minecraft/client/sound/SoundExecutor;waitForStop()V
-
waitForTasks
protected void waitForTasks()- Overrides:
waitForTasksin classThreadExecutor<Runnable>- Mappings:
Namespace Name Mixin selector official bmLaoy;bm()Vintermediary method_20813Lnet/minecraft/class_1255;method_20813()Vnamed waitForTasksLnet/minecraft/util/thread/ThreadExecutor;waitForTasks()V
-
restart
public void restart()- Mappings:
Namespace Name Mixin selector official aLevo;a()Vintermediary method_19763Lnet/minecraft/class_4238;method_19763()Vnamed restartLnet/minecraft/client/sound/SoundExecutor;restart()V
-