Examples of EnumDriveablePart


Examples of com.flansmod.common.driveables.EnumDriveablePart

  }

  @Override
  public void handleServerSide(EntityPlayerMP playerEntity)
  {
    EnumDriveablePart part = EnumDriveablePart.getPart(shortName);  
    //Try to repair the driveable
    FlansMod.proxy.repairDriveable(playerEntity, ((EntitySeat)playerEntity.ridingEntity).driveable, ((EntitySeat)playerEntity.ridingEntity).driveable.getDriveableData().parts.get(part));
  }
View Full Code Here

Examples of com.flansmod.common.driveables.EnumDriveablePart

      entityId = driveable.getEntityId();
      health = new short[EnumDriveablePart.values().length];
      onFire = new boolean[EnumDriveablePart.values().length];
      for(int i = 0; i < EnumDriveablePart.values().length; i++)
      {
        EnumDriveablePart ep = EnumDriveablePart.values()[i];
        DriveablePart part = driveable.getDriveableData().parts.get(ep);
        health[i] = (short)part.health;
        onFire[i] = part.onFire;
      }
  }
View Full Code Here

Examples of com.flansmod.common.driveables.EnumDriveablePart

    }
    if(driveable != null)
    {
          for(int i = 0; i < EnumDriveablePart.values().length; i++)
          {
            EnumDriveablePart ep = EnumDriveablePart.values()[i];
            DriveablePart part = driveable.getDriveableData().parts.get(ep);
            part.health = health[i];
            part.onFire = onFire[i];
          }
    }
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.