Class LocalCache<T>

java.lang.Object
net.minestom.server.utils.cache.LocalCache<T>
Type Parameters:
T - the type to cache

@Internal public final class LocalCache<T> extends Object
Faster alternative to ThreadLocal when called from a MinestomThread. Idea took from Netty's FastThreadLocal.

Must not be abused, as the underlying array is not downsized. Mostly for internal use.