Advanced
Gets an item from a specific pool.
The type of items in the pool. Must extend PoolItem.
The constructor of the items in the pool.
Optional
data: unknownOptional data to pass to the item's constructor.
The item from the pool.
Gets a specific pool based on the class type.
The type of items in the pool. Must extend PoolItem.
The constructor of the items in the pool.
The pool of the given class type.
Prepopulates a specific pool with a given number of items.
The type of items in the pool. Must extend PoolItem.
The constructor of the items in the pool.
The number of items to add to the pool.
Returns an item to its respective pool.
The item to return to the pool.
gets the usage stats of each pool in the system
A group of pools that can be used to store objects of different types.