From 4e4359946440c4eb664d28050ad53709373a0956 Mon Sep 17 00:00:00 2001 From: Thomas Kain Date: Sat, 12 Oct 2024 18:11:21 -0400 Subject: [PATCH] Add a ModelProvider method for flower pots This acts as a shortcut for creating block models based on the block/flower_pot_cross model. --- .../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 e39d3e8e30..f52db6e3c8 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 @@ -371,6 +371,10 @@ public T leaves(String name, ResourceLocation texture) { return singleTexture(name, BLOCK_FOLDER + "/leaves", "all", texture); } + public T flowerPotCross(String name, ResourceLocation plant) { + return singleTexture(name, BLOCK_FOLDER + "/flower_pot_cross", "plant", plant); + } + /** * {@return a model builder that's not directly saved to disk. Meant for use in custom model loaders.} */