Package net.minecraft.client.audio
Class SoundEngineExecutor
- java.lang.Object
-
- net.minecraft.util.concurrent.ThreadTaskExecutor<java.lang.Runnable>
-
- net.minecraft.client.audio.SoundEngineExecutor
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.util.concurrent.Executor
,ITaskExecutor<java.lang.Runnable>
public class SoundEngineExecutor extends ThreadTaskExecutor<java.lang.Runnable>
-
-
Constructor Summary
Constructors Constructor Description SoundEngineExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.Thread
createThread()
void
flush()
protected java.lang.Thread
getRunningThread()
private void
run()
protected boolean
shouldRun(java.lang.Runnable p_212874_1_)
protected void
waitForTasks()
protected java.lang.Runnable
wrapRunnable(java.lang.Runnable p_212875_1_)
-
Methods inherited from class net.minecraft.util.concurrent.ThreadTaskExecutor
doRunTask, dropAllTasks, execute, executeBlocking, getPendingTasksCount, isSameThread, managedBlock, name, pollTask, runAllTasks, scheduleExecutables, submit, submit, submitAsync, tell
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.util.concurrent.ITaskExecutor
ask, askEither, close
-
-
-
-
Method Detail
-
createThread
private java.lang.Thread createThread()
-
wrapRunnable
protected java.lang.Runnable wrapRunnable(java.lang.Runnable p_212875_1_)
- Specified by:
wrapRunnable
in classThreadTaskExecutor<java.lang.Runnable>
-
shouldRun
protected boolean shouldRun(java.lang.Runnable p_212874_1_)
- Specified by:
shouldRun
in classThreadTaskExecutor<java.lang.Runnable>
-
getRunningThread
protected java.lang.Thread getRunningThread()
- Specified by:
getRunningThread
in classThreadTaskExecutor<java.lang.Runnable>
-
run
private void run()
-
waitForTasks
protected void waitForTasks()
- Overrides:
waitForTasks
in classThreadTaskExecutor<java.lang.Runnable>
-
flush
public void flush()
-
-