Package net.minecraft.client.sound
Class SoundExecutor
- All Implemented Interfaces:
AutoCloseable,Executor,MessageListener<Runnable>
@Environment(CLIENT) public class SoundExecutor extends ThreadExecutor<Runnable>
-
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, close, method_27918
-
Field Details
-
thread
-
stopped
private volatile boolean stopped
-
-
Constructor Details
-
SoundExecutor
public SoundExecutor()
-
-
Method Details
-
createThread
-
createTask
- Specified by:
createTaskin classThreadExecutor<Runnable>
-
canExecute
- Specified by:
canExecutein classThreadExecutor<Runnable>
-
getThread
- Specified by:
getThreadin classThreadExecutor<Runnable>
-
waitForStop
private void waitForStop() -
waitForTasks
protected void waitForTasks()- Overrides:
waitForTasksin classThreadExecutor<Runnable>
-
restart
public void restart()
-