Package com.flansmod.common.driveables

Examples of com.flansmod.common.driveables.VehicleType


    }

    public void render(EntityVehicle vehicle, double d, double d1, double d2, float f, float f1)
    {
      bindEntityTexture(vehicle);
      VehicleType type = vehicle.getVehicleType();
        GL11.glPushMatrix();
        {
          GL11.glTranslatef((float)d, (float)d1, (float)d2);
          float dYaw = (vehicle.axes.getYaw() - vehicle.prevRotationYaw);
          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 ItemVehicle)
    {
      VehicleType vehicleType = ((ItemVehicle)item.getItem()).type;
      if(vehicleType.model != null)
      {
        float scale = 0.5F;
        switch(type)
        {
View Full Code Here

   
    /** Render the tank turret
     * @param dt */
  public void renderTurret(float f, float f1, float f2, float f3, float f4, float f5, EntityVehicle vehicle, float dt)
    {   
    VehicleType type = vehicle.getVehicleType();
   
    //Render main turret barrel
    {
      float yaw = vehicle.seats[0].looking.getYaw();
      float pitch = vehicle.seats[0].looking.getPitch();
View Full Code Here

TOP

Related Classes of com.flansmod.common.driveables.VehicleType

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.