mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 19:15:32 +00:00
Removed generics from IModel subinterfaces, add ed ModelProcessingHelper instead.
This commit is contained in:
1 parent
0f2cead3c8
commit
70670d70ea
13 files changed
+63
-37
No files matched your search
@@ -33,6 +33,7 @@ import net.minecraftforge.client.model.IModelState;
|
||||
import net.minecraftforge.client.model.IRetexturableModel;
|
||||
import net.minecraftforge.client.model.ModelLoader;
|
||||
import net.minecraftforge.client.model.ModelLoaderRegistry;
|
||||
import net.minecraftforge.client.model.ModelProcessingHelper;
|
||||
import net.minecraftforge.client.model.MultiModel;
|
||||
import net.minecraftforge.client.model.TRSRTransformation;
|
||||
import net.minecraftforge.client.model.animation.Animation;
|
||||
@@ -212,14 +213,8 @@ public class ModelAnimationDebug
|
||||
"chamber", "blocks/redstone_block",
|
||||
"trunk", "blocks/end_stone"
|
||||
);
|
||||
if(base instanceof IRetexturableModel<?>)
|
||||
{
|
||||
base = ((IRetexturableModel<?>)base).retexture(textures);
|
||||
}
|
||||
if(ring instanceof IRetexturableModel<?>)
|
||||
{
|
||||
ring = ((IRetexturableModel<?>)ring).retexture(textures);
|
||||
}
|
||||
base = ModelProcessingHelper.retexture(base, textures);
|
||||
ring = ModelProcessingHelper.retexture(base, textures);
|
||||
IModel model = new MultiModel(
|
||||
new ResourceLocation(ModelAnimationDebug.MODID, "builtin/engine"),
|
||||
ring,
|
||||
|
||||
Reference in new issue
Block a user