From 3e8711580e5d305d9e7474580931e7a31d85e535 Mon Sep 17 00:00:00 2001 From: iChun Date: Fri, 26 Jul 2013 12:46:52 +0800 Subject: [PATCH] Add Pre and Post events firing for RendererLivingEntity --- .../renderer/entity/RendererLivingEntity.java.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/patches/minecraft/net/minecraft/client/renderer/entity/RendererLivingEntity.java.patch b/patches/minecraft/net/minecraft/client/renderer/entity/RendererLivingEntity.java.patch index 59d63e9a6..990032eb8 100644 --- a/patches/minecraft/net/minecraft/client/renderer/entity/RendererLivingEntity.java.patch +++ b/patches/minecraft/net/minecraft/client/renderer/entity/RendererLivingEntity.java.patch @@ -43,3 +43,12 @@ } 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)); + } +}