Basics
Guides
API Reference
Basics
Guides
API Reference
[22:7] extends: FxObj
Wraps an AussomComponent (subclass of FXGL Component) so Aussom users can define entity behaviors with onAdded / onUpdate / onRemoved callbacks. Attach the resulting Component to an Entity via entity.addComponent. Example: c = new Component(); c.onUpdate(::tick); entity.addComponent(c); public tick(tpf) { ... }
Component ()
Creates a new AussomComponent. Use onAdded / onUpdate / onRemoved to wire callbacks before attaching to an Entity.
onAdded (callback Cb)
Registers the onAdded callback (fires once when the component is attached to its Entity). The callback receives the Entity.
Cb is a callback that takes an Entity argument.this objectonUpdate (callback Cb)
Registers the onUpdate callback (fires every frame the component is active). The callback receives the tpf in seconds.
Cb is a callback that takes a double tpf.this objectonRemoved (callback Cb)
Registers the onRemoved callback (fires once when the component is detached). The callback receives the Entity.
Cb is a callback that takes an Entity argument.this objectgetEntity ()
Returns the Entity this component is attached to (null until addComponent is called).
An AussomJavaObject around an Entity, or null.pause ()
Pauses this component (onUpdate no longer fires).
this objectresume ()
Resumes a paused component.
this objectisPaused ()
Returns whether the component is paused.
A bool.pausedProperty ()
Returns the BooleanProperty mirroring the paused flag. Bind UI elements to this property to react when a component pauses or resumes.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.