World Entity Avatar Repository
An avatar repository for world entities, keeping track of every current avatar, as well as any avatars that were previously used but now released.
Functions
Link copied to clipboard
fun getOrAlloc(index: Int, sizeX: Int, sizeZ: Int, fineX: Int, fineY: Int, fineZ: Int, level: Int, angle: Int): WorldEntityAvatar
Gets an existing world entity avatar from the queue if one is ready, or constructs a new avatar if not.
Link copied to clipboard
Gets a world entity at the provided idx, or null if it doesn't exist.
Link copied to clipboard
Releases avatar back into the pool for it to be used later in the future, if possible.