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:AsyncProcessSync. Called when the world loads.- Specified by:
initin interfaceAsyncProcess
-
reset
public void reset()Description copied from interface:AsyncProcessSync. Called when the world resets.- Specified by:
resetin interfaceAsyncProcess
-
begin
public void begin()Description copied from interface:AsyncProcessSync. Called at the beginning of the main loop.- Specified by:
beginin interfaceAsyncProcess
-
process
public void process()Description copied from interface:AsyncProcessAsync. Called in a separate thread.- Specified by:
processin interfaceAsyncProcess
-
shouldProcess
public boolean shouldProcess()- Specified by:
shouldProcessin interfaceAsyncProcess
-