Thanks, I'll get that moved over!
Figured out the main problem.
I included ModelLayerLocation when constructing, which ended up overriding the model layer and the information was getting dropped on the way to EntityRenderers.
public SteamEngineRenderer(EntityRendererProvider.Context pContext, ModelLayerLocation pLayer)
{
super(pContext, ModelLayers.MINECART);
}
Compiling gave this error:
error: incompatible types: invalid constructor reference
event.registerEntityRenderer(STEAM_ENGINE.get(), SteamEngineRenderer::new);
^
constructor SteamEngineRenderer in class SteamEngineRenderer cannot be applied to given types
required: Context,ModelLayerLocation
found: Context
reason: actual and formal argument lists differ in length
Removing it did the trick.
public SteamEngineRenderer(EntityRendererProvider.Context pContext)
{
super(pContext, ModelLayers.MINECART);
}
I'm going to make a github and maybe even a tutorial for this at some point.