Basics
Guides
API Reference
Basics
Guides
API Reference
[16:7] extends: ObjectComponent
Wraps FXGL's TypeComponent
(com.almasb.fxgl.entity.components.TypeComponent), the
component that holds an entity's polymorphic type tag. Used
by collision dispatch (onCollisionBegin(typeA, typeB, ...))
and entity queries (getEntitiesByType). Reachable through
Entity.getTypeComponent().
TypeComponent (TypeValue = null)
Creates a TypeComponent holding the given type value. The value must be Serializable; an enum is the recommended shape.
adopt (object Ajo)
Wraps an existing TypeComponent AussomJavaObject.
getValue ()
Returns the current type value.
setValue (Value)
Sets the type value.
isType (Value)
Returns whether this component's type equals the supplied type.
valueProperty ()
Returns the type ObjectProperty for binding to UI.
write (object BundleObj)
Persists the component's type value into a Bundle.
read (object BundleObj)
Restores the component's type value from a Bundle.

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