Add Leaves method to ModelProvider.java (#9887)

This commit is contained in:
Joseph T. McQuigg authored and GitHub committed 2024-04-04 13:53:55 +01:00
1 parent 203fbbb742
commit 73b0088cb4
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.}
*/