Add Pre and Post events firing for RendererLivingEntity
This commit is contained in:
parent
f48dafda7e
commit
3e8711580e
1 changed files with 9 additions and 0 deletions
|
@ -43,3 +43,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean func_110813_b(EntityLivingBase par1EntityLivingBase)
|
protected boolean func_110813_b(EntityLivingBase par1EntityLivingBase)
|
||||||
|
@@ -570,7 +578,9 @@
|
||||||
|
*/
|
||||||
|
public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9)
|
||||||
|
{
|
||||||
|
+ MinecraftForge.EVENT_BUS.post(new RenderLivingEvent.Pre((EntityLivingBase)par1Entity, this));
|
||||||
|
this.func_130000_a((EntityLivingBase)par1Entity, par2, par4, par6, par8, par9);
|
||||||
|
+ MinecraftForge.EVENT_BUS.post(new RenderLivingEvent.Post((EntityLivingBase)par1Entity, this));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue