Examples of MechaItemType


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

     
      //Render hips slot : jetpack item
      ItemStack hipsSlot = mecha.inventory.getStackInSlot(EnumMechaSlotType.hips);
      if(hipsSlot != null && hipsSlot.getItem() instanceof ItemMechaAddon)
      {
        MechaItemType hipsAddon = ((ItemMechaAddon)hipsSlot.getItem()).type;
        if(hipsAddon.model != null)
        {
          GL11.glTranslatef(model.hipsAttachmentPoint.x, model.hipsAttachmentPoint.y, model.hipsAttachmentPoint.z);
          GL11.glScalef(type.heldItemScale, type.heldItemScale, type.heldItemScale);
          if(hipsAddon.texture != null)
View Full Code Here

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

    {

      GL11.glRotatef(-90F, 0F, 0F, 1F);
      GL11.glTranslatef(0F, 0F, 0F);
      ItemMechaAddon toolItem = (ItemMechaAddon)item;
      MechaItemType toolType = toolItem.type;
      bindTexture(FlansModResourceHandler.getTexture(toolType));
      if(toolType.model != null)
      {
        toolType.model.render(mecha, dT);
            GL11.glPushMatrix();
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.