OnCreateMountContentPool
The annotated method will be called to create a custom MountContentPool for this mount spec. If a method with this annotation isn't provided, a DefaultMountContentPool will be used to recycle the mount content of this mount spec, which is almost always sufficient.
For example:
@OnCreateMountContentPool
static MountContentPools.ContentPool OnCreateMountContentPool(int poolSizeOverride) {
return new MountContentPools.ContentPool(poolSizeOverride);
}
Content copied to clipboard