Add Leaves method to ModelProvider.java (#9889)

This commit is contained in:
Joseph T. McQuigg authored and GitHub committed 2024-04-04 13:54:13 +01:00
1 parent c22355cc45
commit a8b243c0cd
1 file changed
+4
@@ -368,6 +368,10 @@ public abstract class ModelProvider<T extends ModelBuilder<T>> implements DataPr
return singleTexture(name, BLOCK_FOLDER + "/carpet", "wool", wool);
}
public T leaves(String name, ResourceLocation texture) {
return singleTexture(name, BLOCK_FOLDER + "/leaves", "all", texture);
}
/**
* {@return a model builder that's not directly saved to disk. Meant for use in custom model loaders.}
*/