Skip to content

Commit

Permalink
Add comment to ModelTemplate#extend describing what modders can do …
Browse files Browse the repository at this point in the history
…with it
  • Loading branch information
ApexModder committed Dec 16, 2024
1 parent 1cb8c4c commit 28e4b76
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
JsonObject jsonobject = new JsonObject();
this.model.ifPresent(p_388657_ -> jsonobject.addProperty("parent", p_388657_.toString()));
if (!map.isEmpty()) {
@@ -61,11 +_,13 @@
@@ -61,11 +_,14 @@
}

return jsonobject;
Expand All @@ -26,6 +26,7 @@
return Streams.concat(this.requiredSlots.stream(), p_387972_.getForced()).collect(ImmutableMap.toImmutableMap(Function.identity(), p_387972_::get));
+ }
+
+ // Neo: Allows modders to modify this template by adding new elements, custom loader, render types and other modifiers
+ public net.neoforged.neoforge.client.model.generators.template.ExtendedModelTemplateBuilder extend() {
+ return net.neoforged.neoforge.client.model.generators.template.ExtendedModelTemplateBuilder.of(this);
}
Expand Down

0 comments on commit 28e4b76

Please sign in to comment.