Basics
Guides
API Reference
Basics
Guides
API Reference
[14:7] extends: FxObj
Wraps FXGL's ItemStack, one physical pile of identical items inside an Inventory. Each Inventory item may break across multiple stacks when its quantity exceeds the per-stack cap from ItemConfig.maxStackQuantity. Stacks are not constructed by user code -- obtain them from Inventory.itemsProperty.
ItemStack ()
Empty default constructor; populated by adopt.
adopt (object Ajo)
Wraps an existing ItemStack AussomJavaObject.
Ajo is an AussomJavaObject around an ItemStack.A new wrapper.getUserItem ()
Returns the user-defined item key (often a string or enum) that this stack holds.
getQuantity ()
Returns the current quantity in this stack.
An int.setQuantity (int Quantity)
Sets the stack's quantity directly. Normally driven by Inventory.incrementQuantity; this setter is provided for advanced cases.
Quantity is the new quantity.isEmpty ()
Returns true when the stack has zero items.
A bool.quantityProperty ()
Returns the underlying IntegerProperty backing this stack's quantity so callers can bind a label or progress bar to it.
An AussomJavaObject around an IntegerProperty.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.