Package mindustry.async
Class AvoidanceProcess
java.lang.Object
mindustry.async.AvoidanceProcess
- All Implemented Interfaces:
AsyncProcess
-
Constructor Details
-
AvoidanceProcess
public AvoidanceProcess()
-
-
Method Details
-
getAvoidance
@Nullable public int[] getAvoidance() -
init
public void init()Description copied from interface:AsyncProcess
Sync. Called when the world loads.- Specified by:
init
in interfaceAsyncProcess
-
reset
public void reset()Description copied from interface:AsyncProcess
Sync. Called when the world resets.- Specified by:
reset
in interfaceAsyncProcess
-
begin
public void begin()Description copied from interface:AsyncProcess
Sync. Called at the beginning of the main loop.- Specified by:
begin
in interfaceAsyncProcess
-
process
public void process()Description copied from interface:AsyncProcess
Async. Called in a separate thread.- Specified by:
process
in interfaceAsyncProcess
-
shouldProcess
public boolean shouldProcess()- Specified by:
shouldProcess
in interfaceAsyncProcess
-