Returns a plain array of all assets in insertion order.
All [key, asset] pairs in insertion order.
Returns true if every asset satisfies predicate.
Returns a new AssetCollection containing only assets for which
predicate returns true.
Returns true if an asset with the given key exists in this collection.
All keys in insertion order.
Returns true if at least one asset satisfies predicate.
All assets in insertion order.
A typed, iterable collection keyed by a string identifier.
Used for all top-level collections on
AddOn(addon.items,addon.entities,addon.recipes, etc.). Provides both map-style lookups and array-style helpers without conversion overhead.Example