mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 00:07:45 +00:00
Add method to get the number of elements in a model builder (#7792)
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user