Skip to main content

Component

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

Package: JAVARuntime

Category: Components

Component: no


public class Component extends InspectorMemory

Constructors

SignatureDescription
Component(Component)Executes Component and returns after the underlying engine call finishes.
Component()Creates a new instance of Component.

Attributes

NameTypeDescription
typeTypeRepresents the type value stored on this instance. Read or assign to update the property.
componentComponentRepresents the component value stored on this instance. Read or assign to update the property.
javaComponentJavaComponentRepresents the javaComponent value stored on this instance. Read or assign to update the property.
inspectorComponentInspectorRepresents the inspector value stored on this instance. Read or assign to update the property.
myObjectSpatialObjectRepresents the myObject value stored on this instance. Read or assign to update the property.
myTransformTransformRepresents the myTransform value stored on this instance. Read or assign to update the property.

Virtual Attributes

NameTypeAccessDescription
enabledbooleanget/setVirtual attribute exposed by isEnabled. Access it like a field to read or write the underlying value.
objectSpatialObjectgetVirtual attribute exposed by getObject. Access it like a field to read or write the underlying value.

Methods

SignatureReturnsDescription
setComponentObject(SpatialObject)voidExecutes setComponentObject and returns after the underlying engine call finishes.
getComponentInspector()ComponentInspectorExecutes getComponentInspector and returns after the underlying engine call finishes.
start()voidExecutes start and returns after the underlying engine call finishes.
preRepeat()voidExecutes preRepeat and returns after the underlying engine call finishes.
parallelRepeat()voidExecutes parallelRepeat and returns after the underlying engine call finishes.
disabledParallelRepeat()voidExecutes disabledParallelRepeat and returns after the underlying engine call finishes.
repeat()voidExecutes repeat and returns after the underlying engine call finishes.
disabledRepeat()voidExecutes disabledRepeat and returns after the underlying engine call finishes.
stoppedRepeat()voidExecutes stoppedRepeat and returns after the underlying engine call finishes.
pausedRepeat()voidExecutes pausedRepeat and returns after the underlying engine call finishes.
onDetach()voidExecutes onDetach and returns after the underlying engine call finishes.
prePhysics()voidExecutes prePhysics and returns after the underlying engine call finishes.
posPhysics()voidExecutes posPhysics and returns after the underlying engine call finishes.
posWheelPhysics()voidExecutes posWheelPhysics and returns after the underlying engine call finishes.
onCollision(Collision)voidPerforms the onCollision operation using the provided parameters (collision).
onCollisionEnter(Collision)voidPerforms the onCollisionEnter operation using the provided parameters (collision).
onCollisionStop(Collision)voidPerforms the onCollisionStop operation using the provided parameters (collision).
onKeyDown(Key)voidPerforms the onKeyDown operation using the provided parameters (key).
onKeyPressed(Key)voidPerforms the onKeyPressed operation using the provided parameters (key).
onKeyUp(Key)voidPerforms the onKeyUp operation using the provided parameters (key).
invoke(float, Runnable)voidPerforms the invoke operation using the provided parameters (delaySeconds, invokeListener).
invokeFrames(int, Runnable)voidPerforms the invokeFrames operation using the provided parameters (frames, invokeListener).
invoke(float, InvokeListener)voidPerforms the invoke operation using the provided parameters (delaySeconds, invokeListener).
invokeFrames(int, InvokeListener)voidPerforms the invokeFrames operation using the provided parameters (frames, invokeListener).
cancelAllInvokes()voidExecutes cancelAllInvokes and returns after the underlying engine call finishes.
print(String)voidPerforms the print operation using the provided parameters (message).
print(Quaternion)voidPerforms the print operation using the provided parameters (message).
print(Vector3)voidPerforms the print operation using the provided parameters (message).
print(Vector2)voidPerforms the print operation using the provided parameters (message).
print(Object)voidPerforms the print operation using the provided parameters (message).
print(int)voidPerforms the print operation using the provided parameters (t).
print(float)voidPerforms the print operation using the provided parameters (t).
print(double)voidPerforms the print operation using the provided parameters (t).
print(long)voidPerforms the print operation using the provided parameters (t).
print(char)voidPerforms the print operation using the provided parameters (t).
print(short)voidPerforms the print operation using the provided parameters (t).
getComponentMenu()StringReturns the current component menu.
getComponentColor()ColorReturns the current component color.
getComponentTittle()StringReturns the current component tittle.
setInspector(ComponentInspector)voidSets or updates the inspector.
getUserData()<T extends Object> TReturns the current user data.
setUserData(Object)voidSets or updates the user data.
destroy()voidExecutes destroy and returns after the underlying engine call finishes.
isHierarchyActive()booleanReturns whether hierarchy active is true.
getTittle()StringReturns the name of the component.
componentClassMatch(Component, Component, Class)booleanExecutes componentClassMatch and returns after the underlying engine call finishes.
componentClassMatch(Component, Component)booleanExecutes componentClassMatch and returns after the underlying engine call finishes.
getEngineComponent()ComponentExecutes getEngineComponent and returns after the underlying engine call finishes.
getGUID()GUIDReturns the current guid.
toString()StringReturns the string representation.
callFunction(String)voidPerforms the callFunction operation using the provided parameters (name).
callFunction(String, int)voidPerforms the callFunction operation using the provided parameters (name, args).
callFunction(String, float)voidPerforms the callFunction operation using the provided parameters (name, args).
callFunction(String, String)voidPerforms the callFunction operation using the provided parameters (name, args).
callFunction(String, boolean)voidPerforms the callFunction operation using the provided parameters (name, args).
callFunction(String, Object...)voidPerforms the callFunction operation using the provided parameters (name, args).

Static Methods

SignatureReturnsDescription
inspectorController()ClassInspectorEntryExecutes inspectorController and returns after the underlying engine call finishes.