Package com.flansmod.common.driveables

Examples of com.flansmod.common.driveables.PlaneType


    }

    public void render(EntityPlane entityPlane, double d, double d1, double d2, float f, float f1)
    {
      bindEntityTexture(entityPlane);
      PlaneType type = entityPlane.getPlaneType();
        GL11.glPushMatrix();
        GL11.glTranslatef((float)d, (float)d1, (float)d2);     
        float dYaw = (entityPlane.axes.getYaw() - entityPlane.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 ItemPlane)
    {
      PlaneType planeType = ((ItemPlane)item.getItem()).type;
      if(planeType.model != null)
      {
        float scale = 0.5F;
        switch(type)
        {
View Full Code Here

    renderPart(hudModel);
  }
 
    public void render(float f5, EntityPlane plane, float f)
    {
      PlaneType type = plane.getPlaneType();
    //Rotating the propeller
    float angle = plane.propAngle;
    for(Propeller propeller : plane.getPlaneType().propellers)
    {
      if(plane.isPartIntact(propeller.planePart) && propellerModels.length > propeller.ID)
View Full Code Here

   

    /** Renders helicopter rotor number i. */
  public void renderRotor(EntityPlane plane, float f5, int i)
  {
    PlaneType type = plane.getPlaneType();
    //If its not covered by the plane type heli propellers, render it. Otherwise, see if the part is intact
    if(i >= type.heliPropellers.size() || plane.isPartIntact(type.heliPropellers.get(i).planePart))
    {
      for(int j = 0; j < heliMainRotorModels[i].length; j++)
      {
View Full Code Here

  }
   
  /** Renders helicopter tail rotor number i. */
  public void renderTailRotor(EntityPlane plane, float f5, int i)
  {
    PlaneType type = plane.getPlaneType();
    //If its not covered by the plane type heli propellers, render it. Otherwise, see if the part is intact
    if(i >= type.heliTailPropellers.size() || plane.isPartIntact(type.heliTailPropellers.get(i).planePart))
    {
      for(int j = 0; j < heliTailRotorModels[i].length; j++)
      {
View Full Code Here

TOP

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

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.