@SubscribeEvent
  public void checkingameGUI(TickEvent.RenderTickEvent e) {
    boolean b = mc.ingameGUI instanceof SAOIngameGUI;
    if (mc.ingameGUI != null && SAOOption.DEFAULT_UI.getValue() == b)
      mc.ingameGUI = b ? new GuiIngameForge(mc) : new SAOIngameGUI(mc);

    deadHandlers.forEach(
        ent -> {
          final boolean deadStart = (ent.deathTime == 1);
          final boolean deadExactly = (ent.deathTime >= 18);
          if (deadStart) {
            ent.deathTime++;
            SAOSound.playAtEntity(ent, SAOSound.PARTICLES_DEATH);
          }

          if (deadExactly) {
            StaticRenderer.doSpawnDeathParticles(mc, ent);
            ent.setDead();
          }
        });
    deadHandlers.removeIf(ent -> ent.isDead);
  }
 @SubscribeEvent
 public void renderEntity(RenderLivingEvent.Pre e) {
   StaticRenderer.render(e.renderer.getRenderManager(), e.entity, e.x, e.y, e.z);
 }