mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-26 06:53:20 +00:00
Added model loader registry
Entry point: ModelLoaderRegistry loader interface: ICustomModelLoader custom model: IModel ModelLoader is responsible for splicing into vanilla model system. (you probably don't need to use it directly) Interop with vanilla models isn't great yet (vanilla models can't refer to custom ones as parents), will improve in the future. Includes loader for B3D models, with animation support (net.minecraftforge.client.model.b3d). Blender export plugin with compatible coordinate system: https://github.com/RainWarrior/B3DExport OBJ loader is being written, will be included at some point in the future. For now you can convert OBJ to B3D via blender, or wait.
This commit is contained in:
1 parent
8b6ef01ecc
commit
6eba0ebb93
31 files changed
+3773
-5
No files matched your search
@@ -1,7 +1,11 @@
|
||||
--- ../src-base/minecraft/net/minecraft/client/resources/model/ModelManager.java
|
||||
+++ ../src-work/minecraft/net/minecraft/client/resources/model/ModelManager.java
|
||||
@@ -28,6 +28,7 @@
|
||||
ModelBakery modelbakery = new ModelBakery(p_110549_1_, this.field_174956_b, this.field_174957_c);
|
||||
@@ -25,9 +25,10 @@
|
||||
|
||||
public void func_110549_a(IResourceManager p_110549_1_)
|
||||
{
|
||||
- ModelBakery modelbakery = new ModelBakery(p_110549_1_, this.field_174956_b, this.field_174957_c);
|
||||
+ ModelBakery modelbakery = new net.minecraftforge.client.model.ModelLoader(p_110549_1_, this.field_174956_b, this.field_174957_c);
|
||||
this.field_174958_a = modelbakery.func_177570_a();
|
||||
this.field_174955_d = (IBakedModel)this.field_174958_a.func_82594_a(ModelBakery.field_177604_a);
|
||||
+ net.minecraftforge.client.ForgeHooksClient.onModelBake(this, this.field_174958_a, modelbakery);
|
||||
|
||||
Reference in new issue
Block a user