Advertisement
Creepinson

Untitled

Jun 25th, 2017
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1.  
  2. @SubscribeEvent
  3. public void playerRenderPost(RenderPlayerEvent.Post event) {
  4.  
  5. if (Minecraft.getMinecraft().thePlayer.equals(event.getEntity())) {
  6.  
  7. if (RenderHelper.currentRender == null) {
  8.  
  9. RenderHelper.currentRender = RenderHelper.getRenderFromID(0);
  10.  
  11. } else {
  12. RenderHelper.currentRender.doRender((EntityLivingBase) event.getEntity(), 0, 0, 0, 0, 0);
  13. }
  14.  
  15. }
  16.  
  17. else {
  18.  
  19. if (RenderHelper.currentRender == null) {
  20.  
  21. RenderHelper.currentRender = RenderHelper.getRenderFromID(0);
  22.  
  23. } else {
  24. RenderHelper.currentRender.doRender((EntityLivingBase) Minecraft.getMinecraft().thePlayer, 0, 0, 0, 0,
  25. 0);
  26. }
  27.  
  28. }
  29.  
  30. EntityPlayer player = (EntityPlayer) event.getEntity();
  31. EntityLivingBase living = (EntityLivingBase) event.getEntity().getEntityWorld()
  32. .getEntityByID(player.getEntityId());
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement