Basics
Guides
API Reference
Basics
Guides
API Reference
[17:7] extends: FxObj
Wraps FXGL's ItemData, the per-item metadata FXGL stores alongside the actual stacks. Exposes the item's display name, description, view Node, total quantity (across all stacks), per-stack cap, and the observable list of stacks. Obtain via Inventory.getData(item) or Inventory.getAllData(). Not user-constructed; FXGL builds ItemData when Inventory.add runs.
ItemData ()
Empty default constructor; populated by adopt.
adopt (object Ajo)
Wraps an existing ItemData AussomJavaObject.
Ajo is an AussomJavaObject around an ItemData.A new wrapper.getUserItem ()
Returns the item-key value this data describes.
getName ()
Returns the display name.
setName (string Name)
Sets the display name.
getDescription ()
Returns the description.
setDescription (string Description)
Sets the description.
getView ()
Returns the item's view as an AussomJavaObject around the underlying JavaFX Node.
setView (object ViewObj)
Sets the view Node.
ViewObj is a fx.Node wrapper.getMaxStackQuantity ()
Returns the per-stack quantity cap for this item. When the item's total quantity exceeds this value, the items distribute across multiple stacks.
An int.setMaxStackQuantity (int MaxStackQuantity)
Sets the per-stack quantity cap.
getQuantity ()
Returns the total quantity across every stack of this item.
An int.quantityProperty ()
Returns the underlying IntegerProperty backing the total quantity so callers can bind to it for live UI updates.
An AussomJavaObject around an IntegerProperty.nameProperty ()
Returns the underlying StringProperty backing the display name.
An AussomJavaObject around a StringProperty.descriptionProperty ()
Returns the underlying StringProperty backing the description.
An AussomJavaObject around a StringProperty.viewProperty ()
Returns the underlying ObjectProperty backing the view Node.
An AussomJavaObject around an ObjectProperty.stacks ()
Returns the underlying observable list of stacks for this item.
An AussomJavaObject around an ObservableListgetStacks ()
Returns the live ObservableList of ItemStack entries for this item. Same data as
stacks()but matches the Java getter name for callers that already use the bean-style accessor.
setUserItem (object Value)
Replaces the user-item key that owns these stacks. Pass any value matching the inventory's item type (typically a string or enum AJO).

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