Package net.minecraft.client.sounds
Class SoundEngineExecutor
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<Runnable>
net.minecraft.client.sounds.SoundEngineExecutor
- All Implemented Interfaces:
AutoCloseable,Executor,ProfilerMeasured,ProcessorHandle<Runnable>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraft.util.thread.BlockableEventLoop
doRunTask, dropAllTasks, execute, executeBlocking, executeIfPossible, getPendingTasksCount, isSameThread, managedBlock, name, pollTask, profiledMetrics, runAllTasks, scheduleExecutables, submit, submit, submitAsync, tellMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.util.thread.ProcessorHandle
ask, askEither, close
-
Field Details
-
thread
-
shutdown
private volatile boolean shutdown
-
-
Constructor Details
-
SoundEngineExecutor
public SoundEngineExecutor()
-
-
Method Details
-
createThread
-
wrapRunnable
- Specified by:
wrapRunnablein classBlockableEventLoop<Runnable>
-
shouldRun
- Specified by:
shouldRunin classBlockableEventLoop<Runnable>
-
getRunningThread
- Specified by:
getRunningThreadin classBlockableEventLoop<Runnable>
-
run
private void run() -
waitForTasks
public void waitForTasks()- Overrides:
waitForTasksin classBlockableEventLoop<Runnable>
-
flush
public void flush()
-