From 163e0dd159ab09892bb2bc95551d4b8fe8387276 Mon Sep 17 00:00:00 2001 From: "Joseph T. McQuigg" Date: Fri, 5 Apr 2024 04:06:31 -0400 Subject: [PATCH] Add Leaves method to ModelProvider.java (#779) --- .../neoforge/client/model/generators/ModelProvider.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/neoforged/neoforge/client/model/generators/ModelProvider.java b/src/main/java/net/neoforged/neoforge/client/model/generators/ModelProvider.java index 364d0c2801..c41048899f 100644 --- a/src/main/java/net/neoforged/neoforge/client/model/generators/ModelProvider.java +++ b/src/main/java/net/neoforged/neoforge/client/model/generators/ModelProvider.java @@ -367,6 +367,10 @@ public T carpet(String name, ResourceLocation wool) { 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.} */