Package net.minecraft.client.model

Examples of net.minecraft.client.model.ModelBase.render()


    GL11.glTranslatef((float) d, (float) d1, (float) d2);
    GL11.glRotatef(f, 0.0F, 1.0F, 0.0F);
    GL11.glRotatef(90F -bullet.prevRotationPitch - (bullet.rotationPitch - bullet.prevRotationPitch) * f1, 1.0F, 0.0F, 0.0F);
    ModelBase model = (ModelBase) bullet.type.model;
    if(model != null)
      model.render(bullet, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
    GL11.glPopMatrix();
  }

  @Override
  public void doRender(Entity entity, double d, double d1, double d2, float f, float f1)
View Full Code Here


          GL11.glRotatef(grenade.prevRotationPitch + dPitch * f1, 0.0F, 0.0F, 1.0F);
      GL11.glRotatef(grenade.prevRotationRoll + dRoll * f1, 1.0F, 0.0F, 0.0F);
        }
    ModelBase model = grenade.type.model;
    if(model != null)
      model.render(grenade, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
    GL11.glPopMatrix();
  }

  @Override
  public void doRender(Entity entity, double d, double d1, double d2, float f, float f1)
View Full Code Here

        default : break;
        }
       
        Minecraft.getMinecraft().renderEngine.bindTexture(FlansModResourceHandler.getTexture(grenadeType));
        ModelBase model = grenadeType.model;
        model.render(null, 0F, 0F, 0F, 0F, 0F, 1F / 16F);
      }
    }
    GL11.glPopMatrix();
  }
View Full Code Here

    GL11.glPushMatrix();
    GL11.glTranslatef((float) d0, (float) d1, (float) d2);
    GL11.glRotatef(-f, 0.0F, 1.0F, 0.0F);
    GL11.glRotatef(-entity.prevRotationPitch - (entity.rotationPitch - entity.prevRotationPitch) * f1, 1.0F, 0.0F, 0.0F);
    ModelBase model = ((EntityParachute)entity).type.model;
    model.render(entity, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
    GL11.glPopMatrix();
  }

  @Override
  protected ResourceLocation getEntityTexture(Entity entity)
View Full Code Here

        if (texture == null)
            texture = minecartTextures;
        renderer.bindTex(texture);

        ModelBase core = CartModelManager.getCoreModel(cart.getClass());
        core.render(cart, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
        GL11.glPopMatrix();
        return true;
    }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.