Skip to main content

WorldController

Complete API reference for WorldController, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: World

Component: no


public class WorldController

Static Methods

SignatureReturnsDescription
loadWorld(WorldFile)voidLoads world into the object.
loadWorldAsync(WorldFile)voidLoads world async into the object.
findObject(String)SpatialObjectPerforms the findObject operation using the provided parameters (name).
getObjectList()List<SpatialObject>Returns the current object list.
getObjectsCount()intReturns the current objects count.
getObject(int)SpatialObjectReturns the current object.
findFirstComponent(Class)<T extends JAVARuntime.Component> TPerforms the findFirstComponent operation using the provided parameters (classReference).
findFirstActiveComponent(Class)<T extends JAVARuntime.Component> TPerforms the findFirstActiveComponent operation using the provided parameters (classReference).
listAllComponents(String)List<JAVARuntime.Component>Performs the listAllComponents operation using the provided parameters (tittle).
listAllComponents(Class)List<JAVARuntime.Component>Performs the listAllComponents operation using the provided parameters (classReference).
getLoadPercent()floatReturns the current load percent.
getLoadProgress()floatReturns the current load progress.
getLoadedCount()intReturns the current loaded count.
getLoadTotal()intReturns the current load total.
getLoadMessage()StringReturns the current load message.
isLoaded()booleanReturns whether loaded is true.
isLoading()booleanReturns whether loading is true.
getGraphicsSettings()GraphicsSettingsReturns the current graphics settings.
getPhysicsSettings()PhysicsSettingsReturns the current physics settings.
findObjectWithTag(String)SpatialObjectPerforms the findObjectWithTag operation using the provided parameters (tagName).
findObjectsWithTag(String)List<SpatialObject>Performs the findObjectsWithTag operation using the provided parameters (tagName).
findRandomObjectWithTag(String)SpatialObjectPerforms the findRandomObjectWithTag operation using the provided parameters (tagName).
countObjectsWithTag(String)intPerforms the countObjectsWithTag operation using the provided parameters (tagName).
hasObjectsWithTag(String)booleanReturns whether objects with tag is true.