Package com.flansmod.common.driveables.mechas

Examples of com.flansmod.common.driveables.mechas.MechaType


  @Override
  /** GUI render method */
  public void render(DriveableType type)
  {
    super.render(type);
    MechaType mechaType = (MechaType)type;
    renderPart(hipsModel);
    renderPart(leftLegModel);
    renderPart(rightLegModel);
    renderPart(leftFootModel);
    renderPart(rightFootModel);
View Full Code Here


 
    public void render(EntityMecha mecha, double d, double d1, double d2, float f, float f1)
    {
      bindEntityTexture(mecha);
      float scale = 1F / 16F;
      MechaType type = mecha.getMechaType();
        GL11.glPushMatrix();
        GL11.glTranslatef((float)d, (float)d1, (float)d2);
        float dYaw = (mecha.axes.getYaw() - mecha.prevRotationYaw);
        for(; dYaw > 180F; dYaw -= 360F) {}
        for(; dYaw <= -180F; dYaw += 360F) {}
View Full Code Here

  public void renderItem(ItemRenderType type, ItemStack item, Object... data)
  {
    GL11.glPushMatrix();
    if(item != null && item.getItem() instanceof ItemMecha)
    {
      MechaType mechaType = ((ItemMecha)item.getItem()).type;
      if(mechaType.model != null)
      {
        float scale = 0.5F;
        switch(type)
        {
View Full Code Here

    if(fuelInTank < fuelTankSize / 8 && (anim % 4) > 1)
      drawTexturedModalRect(width / 2 - 14, height / 2 - 59, 360, 0, 6, 6);
    if(fuelInTank > 0)
      drawTexturedModalRect(width / 2 - 18, height / 2 + 45 - (int)((94 * fuelInTank) / fuelTankSize), 350, 20, 15, (int)((94 * fuelInTank) / fuelTankSize));
   
        MechaType type = mecha.getMechaType();
    //Render rotating mecha model
    GL11.glPushMatrix();
    GL11.glEnable(GL11.GL_DEPTH_TEST);
    GL11.glEnable(GL11.GL_LIGHTING);
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
View Full Code Here

TOP

Related Classes of com.flansmod.common.driveables.mechas.MechaType

Copyright © 2018 www.massapicom. 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.