Package mindustry
Class ClientLauncher
java.lang.Object
arc.ApplicationCore
mindustry.ClientLauncher
- All Implemented Interfaces:
ApplicationListener
,Platform
-
Nested Class Summary
Nested classes/interfaces inherited from interface mindustry.core.Platform
Platform.FileWriter
-
Field Summary
Fields inherited from class arc.ApplicationCore
modules
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ApplicationListener module) void
exit()
Called when the applications exits gracefully, either through `Core.app.exit()` or through a window closing.void
init()
Called when theApplication
is first created.void
pause()
Called when theApplication
is paused, usually when it's not active or visible on screen.void
resize
(int width, int height) Called when theApplication
is resized.void
resume()
Called when theApplication
is resumed from a paused state, usually when it regains focus.void
setup()
void
update()
Called when theApplication
should update itself.Methods inherited from class arc.ApplicationCore
dispose, fileDropped
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface mindustry.core.Platform
beginForceLandscape, createScripts, endForceLandscape, export, getNet, getScriptContext, getUUID, getWorkshopContent, hide, inviteFriends, loadJar, openWorkshop, publish, shareFile, showFileChooser, showFileChooser, showMultiFileChooser, updateLobby, updateRPC, viewListing, viewListingID
-
Constructor Details
-
ClientLauncher
public ClientLauncher()
-
-
Method Details
-
setup
public void setup()- Specified by:
setup
in classApplicationCore
-
add
- Overrides:
add
in classApplicationCore
-
resize
public void resize(int width, int height) Description copied from interface:ApplicationListener
Called when theApplication
is resized. This can happen at any point during a non-paused state but will never happen before a call toApplicationListener.init()
.- Specified by:
resize
in interfaceApplicationListener
- Overrides:
resize
in classApplicationCore
- Parameters:
width
- the new width in pixelsheight
- the new height in pixels
-
update
public void update()Description copied from interface:ApplicationListener
Called when theApplication
should update itself.- Specified by:
update
in interfaceApplicationListener
- Overrides:
update
in classApplicationCore
-
exit
public void exit()Description copied from interface:ApplicationListener
Called when the applications exits gracefully, either through `Core.app.exit()` or through a window closing. Never called after a crash, unlike dispose().- Specified by:
exit
in interfaceApplicationListener
-
init
public void init()Description copied from interface:ApplicationListener
Called when theApplication
is first created. Only gets called if the application is created before the listener is added.- Specified by:
init
in interfaceApplicationListener
- Overrides:
init
in classApplicationCore
-
resume
public void resume()Description copied from interface:ApplicationListener
Called when theApplication
is resumed from a paused state, usually when it regains focus.- Specified by:
resume
in interfaceApplicationListener
- Overrides:
resume
in classApplicationCore
-
pause
public void pause()Description copied from interface:ApplicationListener
Called when theApplication
is paused, usually when it's not active or visible on screen. An Application is also paused before it is destroyed.- Specified by:
pause
in interfaceApplicationListener
- Overrides:
pause
in classApplicationCore
-