Add method to get the number of elements in a model builder (#7792)

This commit is contained in:
mrp-v2 authored and GitHub committed 2021-06-08 12:49:25 -07:00
1 parent aa4f24c915
commit 2a7dde3d2e
1 file changed
+9
@@ -199,6 +199,15 @@ public class ModelBuilder<T extends ModelBuilder<T>> extends ModelFile {
return elements.get(index);
}
/**
* Gets the number of elements in this model builder
* @return the number of elements in this model builder
*/
public int getElementCount()
{
return elements.size();
}
/**
* Use a custom loader instead of the vanilla elements.
* @param customLoaderFactory