java.lang.ClassCastException: class net.minecraft.world.entity.boss.EnderDragonPart cannot be cast to class net.minecraft.world.entity.boss.enderdragon.EnderDragon
at net.minecraft.client.renderer.entity.EnderDragonRenderer.render(EnderDragonRenderer.java:27)
at com.samsthenerd.inline.api.client.renderers.InlineEntityRenderer.render(InlineEntityRenderer.java:50)
at com.samsthenerd.inline.api.client.renderers.InlineEntityRenderer.render(InlineEntityRenderer.java:17)
My guess for the cause here is that line 40 of InlineEntityRenderer returns the EnderDragonEntityRenderer even when the actual entity passed in is an EnderDragonPart rather than an EnderDragon. Then, when line 47 calls renderer.render(), the EnderDragonPart gets passed to EnderDragonEntityRenderer.render() which is expecting an EnderDragon, not an EnderDragonPart.
My guess for the cause here is that line 40 of InlineEntityRenderer returns the EnderDragonEntityRenderer even when the actual entity passed in is an EnderDragonPart rather than an EnderDragon. Then, when line 47 calls
renderer.render(), the EnderDragonPart gets passed toEnderDragonEntityRenderer.render()which is expecting an EnderDragon, not an EnderDragonPart.