use of net.minecraft.client.renderer.entity.RenderBiped in project pnc-repressurized by TeamPneumatic.
the class ClientEventHandler method setRenderHead.
private void setRenderHead(EntityLivingBase entity, boolean setRender) {
if (entity.getItemStackFromSlot(EntityEquipmentSlot.HEAD).getItem() == Itemss.PNEUMATIC_HELMET && (ConfigHandler.client.useHelmetModel || DateEventHandler.isIronManEvent())) {
Render renderer = Minecraft.getMinecraft().getRenderManager().getEntityRenderObject(entity);
if (renderer instanceof RenderBiped) {
ModelBiped modelBiped = (ModelBiped) ((RenderBiped) renderer).getMainModel();
modelBiped.bipedHead.showModel = setRender;
}
}
}
Aggregations