Package net.minecraftforge.fml
Class ModWorkManager.SyncExecutor
- java.lang.Object
-
- net.minecraftforge.fml.ModWorkManager.SyncExecutor
-
- All Implemented Interfaces:
java.util.concurrent.Executor
,ModWorkManager.DrivenExecutor
- Enclosing class:
- ModWorkManager
private static class ModWorkManager.SyncExecutor extends java.lang.Object implements ModWorkManager.DrivenExecutor
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.ConcurrentLinkedDeque<java.lang.Runnable>
tasks
-
Constructor Summary
Constructors Modifier Constructor Description private
SyncExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
driveOne()
void
execute(java.lang.Runnable command)
boolean
selfDriven()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.fml.ModWorkManager.DrivenExecutor
drive
-
-
-
-
Method Detail
-
driveOne
public boolean driveOne()
- Specified by:
driveOne
in interfaceModWorkManager.DrivenExecutor
-
selfDriven
public boolean selfDriven()
- Specified by:
selfDriven
in interfaceModWorkManager.DrivenExecutor
-
execute
public void execute(java.lang.Runnable command)
- Specified by:
execute
in interfacejava.util.concurrent.Executor
-
-