Cache
The engine's instance cache: drop or swap the reference an instance has. Entries: 3.
- cache.invalidateRemoves an instance from the engine's instance cache. The reference you hold is no longer the one the engine hands out: asking the game for the same instance again gives a different reference, and the two do not compare equal.
() - cache.iscachedReturns true while the reference is in the instance cache, and false once cache.invalidate has removed it.
boolean - cache.replaceReplaces the cache entry of one instance with another instance. Afterwards the first reference no longer compares equal to the second, nor to a fresh reference to the second instance.
()