Basics
Guides
API Reference
Basics
Guides
API Reference
[13:7] extends: FxObj
Wraps FXGL's SpawnData, the bundle of (x, y, z) coordinates plus an arbitrary key-value map passed to GameWorld.spawn and consumed by an EntityFactory's @Spawns-annotated method. Use put to attach additional data the factory reads via get.
SpawnData (double X = 0.0, double Y = 0.0, double Z = 0.0)
Creates a new SpawnData at the given coordinates.
X is the X position.Y is the Y position.Z is the optional Z position (defaults to 0.0).adopt (object Ajo)
Wraps an existing SpawnData AussomJavaObject.
Ajo is an AussomJavaObject around a SpawnData.A new wrapper.put (string Key, Value)
Stores a value under the given key for the entity factory to read via get(Key).
Key is the data key.Value is the value to store.this objecthasKey (string Key)
Returns whether Key was set on this SpawnData.
Key is the data key.A bool.get (string Key)
Returns the stored value under Key. Throws if the key is missing.
Key is the data key.The stored value (AussomJavaObject or primitive).getX ()
Returns the X coordinate.
A double.getY ()
Returns the Y coordinate.
A double.getZ ()
Returns the Z coordinate.
A double.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.